edu.iu.pcl.absurdist.absurdist
Class RelationModel

java.lang.Object
  |
  +--edu.iu.pcl.absurdist.absurdist.RelationModel
All Implemented Interfaces:
java.io.Serializable

public class RelationModel
extends java.lang.Object
implements java.io.Serializable

Class RelationModel is the model for a particular type of relation, including specifications on its inherent properties.

See Also:
Serialized Form

Field Summary
 boolean directed
          Whether the relation is directed.
 java.lang.String label
          Identifier of this RelationModel.
 
Constructor Summary
RelationModel()
          Constructor for a default relation model.
RelationModel(java.lang.String label, boolean directed)
          Constructs a relation model of the specified label and direction feature.
 
Method Summary
 int compareTo(RelationModel model)
          Compares the ordering between this model and the specified one, according to their label.
 java.lang.String toString()
          Returns a string representation of this relation model
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public java.lang.String label
Identifier of this RelationModel.


directed

public boolean directed
Whether the relation is directed.

Constructor Detail

RelationModel

public RelationModel()
Constructor for a default relation model.


RelationModel

public RelationModel(java.lang.String label,
                     boolean directed)
Constructs a relation model of the specified label and direction feature.

Method Detail

compareTo

public int compareTo(RelationModel model)
Compares the ordering between this model and the specified one, according to their label.


toString

public java.lang.String toString()
Returns a string representation of this relation model

Overrides:
toString in class java.lang.Object