|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IEntity
The IEntity interface represents the model elements which are displayed in diagrams as entities (i.e. nodes or threads).
The primary attribute of a entity is its id - the identifier visible for users, by which they are able to identify it.
The IEntity has two sets of relations:
The entity has also a type, whose purpose is to differentiate the way different entities are displayed (i.e. as phone icon, as smiling face, etc.)
Method Summary | |
---|---|
void |
addRelation(IRelation relation)
Add new relation to relations of this entity. |
String |
getId()
The id of the entity (getter). |
List<IRelation> |
getSourceRelations()
Source relations (getter). |
List<IRelation> |
getTargetRelations()
Target relations (getter). |
boolean |
isConnected(IEntity entity)
Returns true if the entity is directly connected with given entity. |
void |
removeRelation(IRelation relation)
Remove relation from this entity. |
void |
setId(String id)
The id of the entity (setter). |
void |
setSourceRelations(List<IRelation> relations)
Source relations (setter). |
void |
setTargetRelations(List<IRelation> relations)
Target relations (setter). |
Methods inherited from interface pl.edu.agh.cast.model.mapper.Mappable |
---|
clone, getAttribute, getAttributeNames, getAttributeType, getMid, getType, setAttribute, setMid |
Method Detail |
---|
String getId()
getId
in interface Mappable
void setId(String id)
setId
in interface Mappable
id
- Id to setvoid addRelation(IRelation relation)
relation
- The relation to addvoid removeRelation(IRelation relation)
relation
- The relation to remove.List<IRelation> getSourceRelations()
void setSourceRelations(List<IRelation> relations)
relations
- Relations to setList<IRelation> getTargetRelations()
void setTargetRelations(List<IRelation> relations)
relations
- The relations to setboolean isConnected(IEntity entity)
entity
- The entity checked for connection.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |