public class SimpleRelation extends Object implements Relation
Relation interface.| Modifier and Type | Field and Description | 
|---|---|
| protected FeatureMap | features | 
| protected int | id | 
| protected int[] | members | 
| protected String | type | 
| protected Object | userData | 
| Constructor and Description | 
|---|
| SimpleRelation(int id,
              String type,
              int[] members)You should never create instances of this class directly, you
 should create new relations via the appropriate methods of
  RelationSet. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object obj) | 
| FeatureMap | getFeatures()Get the feature set. | 
| Integer | getId()The ID. | 
| int[] | getMembers()Gets the members of the relation. | 
| String | getType()Get the type of the relation (e.g. | 
| Object | getUserData()Gets the arbitrary data associated with this relation | 
| int | hashCode() | 
| void | setFeatures(FeatureMap features)Set the feature set | 
| void | setUserData(Object data)Sets the arbitrary data associated with this relation | 
| String | toString() | 
protected String type
protected int[] members
protected int id
protected FeatureMap features
protected Object userData
public SimpleRelation(int id,
                      String type,
                      int[] members)
RelationSet. This method is only publicly available to
 support persistence.public String getType()
RelationRelation.COREF).public int[] getMembers()
RelationgetMembers in interface Relationpublic FeatureMap getFeatures()
FeatureBearergetFeatures in interface FeatureBearerpublic void setFeatures(FeatureMap features)
FeatureBearersetFeatures in interface FeatureBearerpublic Object getUserData()
RelationgetUserData in interface Relationpublic void setUserData(Object data)
RelationsetUserData in interface Relationdata - the arbitrary data associated with this
          relationCopyright © 2024 GATE. All rights reserved.