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()
Relation
Relation.COREF
).public int[] getMembers()
Relation
getMembers
in interface Relation
public FeatureMap getFeatures()
FeatureBearer
getFeatures
in interface FeatureBearer
public void setFeatures(FeatureMap features)
FeatureBearer
setFeatures
in interface FeatureBearer
public Object getUserData()
Relation
getUserData
in interface Relation
public void setUserData(Object data)
Relation
setUserData
in interface Relation
data
- the arbitrary data associated with this
relationCopyright © 2024 GATE. All rights reserved.