public class Relation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
name |
java.util.LinkedList<Percept> |
percepts |
Constructor and Description |
---|
Relation(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addPercept(Percept p) |
boolean |
equals(java.lang.Object obj) |
java.util.List<Percept> |
getRelationPercepts() |
java.lang.String |
getType() |
int |
hashCode() |
boolean |
isEquals(Relation targetRelation) |
boolean |
isPerceptInRelation(Percept targetPercept) |
void |
removePercept(Percept p) |
void |
setType(java.lang.String newType) |
public java.lang.String name
public java.util.LinkedList<Percept> percepts
public java.lang.String getType()
public void setType(java.lang.String newType)
public java.util.List<Percept> getRelationPercepts()
public boolean isPerceptInRelation(Percept targetPercept)
public void addPercept(Percept p)
public void removePercept(Percept p)
public boolean isEquals(Relation targetRelation)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object