|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjcreek.representation.TemporaryRelationData
Method Summary | |
void |
addOverridenBy(Relation override)
This relation is market as beeing overriden by another relation. |
void |
addOverriding(Relation override)
This relation is market as overriding another relation. |
long |
getCreationTime()
Returns the time of creation for this relation in the same format as System.getCurrentMillis(); |
java.lang.String |
getDescription()
Returns the description of this entity. |
double |
getExplanationStrength()
Returns the explanation strength for this relation. |
Entity |
getFrom()
Returns the entity from where the relation originates. |
java.lang.Object |
getID()
Returns a unique ID for the entity this relationData represents. |
Relation |
getInverse()
Returns the inverse of this relation. |
Relation[] |
getOverridenBy()
Returns which relations this relation is overriden by. |
Relation[] |
getOverrides()
Returns the relation (if any) this relation overrides. |
Entity |
getRelationType()
Returns the instance of Entity describing this relation's type. |
Entity |
getValue()
Returns the entity this relation is pointing at. |
boolean |
isOverridden()
Returns true if there is at least one relation overriding this relation. |
boolean |
isOverriding()
Returns true if this relation overrides another relation. |
void |
remove()
Does nothing in a temporary relation data object since it is not registered. |
void |
removeOverriddenBy(Relation override)
Removes a relation from beeing overriden by this relation. |
void |
removeOverriding(Relation override)
Removes a relation from beeing overriden by this relation. |
void |
setCreationTime(long time)
Sets the creation time. |
void |
setDescription(java.lang.String description)
Sets the desciption of this relation. |
void |
setExplanationStrength(double value)
Sets the strength variable contains the explanation strength for this relation. |
void |
setFrom(Entity from)
Sets the from-entity (the origin) of the relation. |
void |
setInverse(Relation inverse)
Sets the inverse of this relation to be the given relation. |
void |
setRelationType(Entity relationType)
Sets this relation's type. |
void |
setValue(Entity value)
Sets the value (the target) of the relation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.lang.Object getID()
getID
in interface RelationData
public void setFrom(Entity from)
setFrom
in interface RelationData
from
- The new from-entity of the relation.public Entity getFrom()
getFrom
in interface RelationData
public void setValue(Entity value)
setValue
in interface RelationData
value
- The new value of the relation.public Entity getValue()
getValue
in interface RelationData
public Entity getRelationType()
getRelationType
in interface RelationData
public void setRelationType(Entity relationType)
setRelationType
in interface RelationData
relationType
- The Entity describing this relation's type.public void setDescription(java.lang.String description)
setDescription
in interface RelationData
description
- The String containing the description.public java.lang.String getDescription()
getDescription
in interface RelationData
public long getCreationTime()
getCreationTime
in interface RelationData
public void setCreationTime(long time)
setCreationTime
in interface RelationData
time
- The time in the format of System.getCurrentMillis() this relation was created.public void setExplanationStrength(double value)
setExplanationStrength
in interface RelationData
value
- The explanation strength.public double getExplanationStrength()
getExplanationStrength
in interface RelationData
public void addOverriding(Relation override)
addOverriding
in interface RelationData
override
- The relation to overridepublic void removeOverriding(Relation override)
removeOverriding
in interface RelationData
override
- The relation to remove from the overide list.public Relation[] getOverrides()
getOverrides
in interface RelationData
public boolean isOverriding()
isOverriding
in interface RelationData
public boolean isOverridden()
isOverridden
in interface RelationData
public void addOverridenBy(Relation override)
addOverridenBy
in interface RelationData
override
- The relation to overridepublic void removeOverriddenBy(Relation override)
removeOverriddenBy
in interface RelationData
override
- The relation to remove from the overide list.public Relation[] getOverridenBy()
getOverridenBy
in interface RelationData
public void remove()
remove
in interface RelationData
public void setInverse(Relation inverse)
setInverse
in interface RelationData
public Relation getInverse()
getInverse
in interface RelationData
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |