|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
ucot.model.relation.RelationalAnalyzeModel
public class RelationalAnalyzeModel
This is the internal representation of analyzed use case. It is build up from two basic kind of objects: items and relations between them.
Field Summary | |
---|---|
(package private) ModelEditor |
editor
|
private java.util.Set<Item> |
items
|
private java.util.Set<Relation> |
relations
|
Constructor Summary | |
---|---|
RelationalAnalyzeModel()
|
Method Summary | |
---|---|
protected void |
addItem(Item e)
Adds item in to the model |
protected void |
addRelation(Relation relation)
Adds relation to this model. |
void |
clear()
Clears this analyze model |
private void |
extractEntities(Thing i)
Extract entities from given thing. |
ModelEditor |
getEditor()
return editor for this analyze model |
Entity |
getEntityByName(java.lang.String name)
Returns entity by its name |
Item |
getItemByName(java.lang.String name)
Returns spesific item by its name. |
java.util.Set<Item> |
getItemsType(java.lang.String typeName)
Returns items which type name is equal to given type name. |
java.util.Set<Relation> |
getRelationsFrom(Thing item)
Returns relations that originates from given thing. |
java.util.Set<Relation> |
getRelationsFrom(Thing thing1,
Method method)
Returns relations which mark method influence and originate from given thing. |
java.util.Set<Relation> |
getRelationsFrom(Thing item,
RelationType type)
Returns relations that are certain type and are originated from given item. |
java.util.Set<Relation> |
getRelationsFrom(Thing item,
java.lang.String toType)
Returns relations which point to thing of spesific type and are originated from given item. |
java.util.Set<Relation> |
getRelationsTo(Thing item)
Returns relations that point to given thing. |
java.util.Set<Relation> |
getRelationsTo(Thing item,
RelationType type)
Returns relations that are certain type and targets given item. |
void |
readySignal()
Signals all observers that this model is ready. |
protected void |
removeItem(Item item)
Removes item from the model. |
protected void |
removeRelation(Relation relation)
Removes given relation. |
protected void |
setChanged()
|
void |
updationStartedSignal()
Signals all observers that this model is beign modified. |
Methods inherited from class java.util.Observable |
---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface ucot.model.AnalyzeModel |
---|
addObserver |
Field Detail |
---|
private java.util.Set<Item> items
private java.util.Set<Relation> relations
ModelEditor editor
Constructor Detail |
---|
public RelationalAnalyzeModel()
Method Detail |
---|
protected void addItem(Item e)
e
- Item to be added.public Entity getEntityByName(java.lang.String name)
name
- The name of the wanted entity.
public Item getItemByName(java.lang.String name)
name
-
public java.util.Set<Item> getItemsType(java.lang.String typeName)
typeName
- The type name we are searching for.
private void extractEntities(Thing i)
i
- The thing to be investigated.public java.util.Set<Relation> getRelationsTo(Thing item)
item
-
public java.util.Set<Relation> getRelationsFrom(Thing item)
item
-
public java.util.Set<Relation> getRelationsTo(Thing item, RelationType type)
item
- The originator.type
- The RelationType we are looking for.
public java.util.Set<Relation> getRelationsFrom(Thing item, RelationType type)
item
- The originator.type
- The RelationType we are looking for.
public java.util.Set<Relation> getRelationsFrom(Thing item, java.lang.String toType)
item
- The originator.toType
- The type of the Thing relation points.
public java.util.Set<Relation> getRelationsFrom(Thing thing1, Method method)
thing1
- method
-
protected void removeItem(Item item)
item
- The item that is going to be removedprotected void setChanged()
setChanged
in class java.util.Observable
protected void removeRelation(Relation relation)
relation
- Relation to be removed.protected void addRelation(Relation relation)
relation
- The relation beign added.public ModelEditor getEditor()
AnalyzeModel
getEditor
in interface AnalyzeModel
public void clear()
AnalyzeModel
clear
in interface AnalyzeModel
public void readySignal()
AnalyzeModel
readySignal
in interface AnalyzeModel
public void updationStartedSignal()
AnalyzeModel
updationStartedSignal
in interface AnalyzeModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |