public class Percept
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
Percept(java.lang.String name,
java.lang.String category) |
Modifier and Type | Method and Description |
---|---|
void |
addKeyProperty(Property keyProp) |
void |
addKeyRelation(Relation keyRel) |
void |
addProperty(Property prop) |
void |
addRelation(Relation rel) |
boolean |
equals(java.lang.Object otherPercept) |
java.util.List<Relation> |
getAllKeyRelations() |
java.util.List<Relation> |
getAllRelations() |
java.lang.String |
getCategory() |
java.lang.Object |
getClone() |
java.lang.String |
getName() |
java.util.List<Percept> |
getPerceptOfRelation(java.lang.String relationName) |
java.util.List<Property> |
getProperties() |
Property |
getPropertyByType(java.lang.String propertyType) |
Relation |
getRelationByType(java.lang.String type) |
java.util.List<Relation> |
getRelations() |
int |
hashCode() |
boolean |
hasPropertiesTypes(java.util.List<Property> targetProps) |
void |
removeKeyProperty(Property keyProp) |
void |
removeProperty(Property prop) |
int |
removeRelation(Relation relationToDelete) |
void |
replaceRelation(java.lang.String currentRelationType,
Relation newRelation)
Replace relation if exist or add new relation otherwise.
|
public void addProperty(Property prop)
public void addKeyProperty(Property keyProp)
public void addRelation(Relation rel)
public void addKeyRelation(Relation keyRel)
public void removeProperty(Property prop)
public void removeKeyProperty(Property keyProp)
public java.util.List<Relation> getAllRelations()
public java.util.List<Relation> getAllKeyRelations()
public int removeRelation(Relation relationToDelete)
public java.lang.String getName()
public java.lang.String getCategory()
public java.util.List<Property> getProperties()
public java.util.List<Relation> getRelations()
public Relation getRelationByType(java.lang.String type)
public java.util.List<Percept> getPerceptOfRelation(java.lang.String relationName)
public Property getPropertyByType(java.lang.String propertyType)
public java.lang.Object getClone()
public boolean hasPropertiesTypes(java.util.List<Property> targetProps)
public boolean equals(java.lang.Object otherPercept)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void replaceRelation(java.lang.String currentRelationType, Relation newRelation)
currentRelationType
- newRelation
-