Package network.aika.lattice.refinement
Class RelationsMap
- java.lang.Object
-
- network.aika.lattice.refinement.RelationsMap
-
- All Implemented Interfaces:
Comparable<RelationsMap>,Writable
public class RelationsMap extends Object implements Comparable<RelationsMap>, Writable
- Author:
- Lukas Molzberger
-
-
Field Summary
Fields Modifier and Type Field Description static RelationsMapMAXstatic RelationsMapMINRelation[]relations
-
Constructor Summary
Constructors Constructor Description RelationsMap()RelationsMap(Relation[] relations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(RelationsMap rm)Relationget(int i)booleanisExact()intlength()static RelationsMapread(DataInput in, Model m)voidreadFields(DataInput in, Model m)Deserialize the fields of this object fromin.intsize()StringtoString()voidwrite(DataOutput out)Serialize the fields of this object toout.
-
-
-
Field Detail
-
MIN
public static final RelationsMap MIN
-
MAX
public static final RelationsMap MAX
-
relations
public Relation[] relations
-
-
Constructor Detail
-
RelationsMap
public RelationsMap()
-
RelationsMap
public RelationsMap(Relation[] relations)
-
-
Method Detail
-
write
public void write(DataOutput out) throws IOException
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException
-
readFields
public void readFields(DataInput in, Model m) throws IOException
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException
-
read
public static RelationsMap read(DataInput in, Model m) throws IOException
- Throws:
IOException
-
compareTo
public int compareTo(RelationsMap rm)
- Specified by:
compareToin interfaceComparable<RelationsMap>
-
length
public int length()
-
get
public Relation get(int i)
-
size
public int size()
-
isExact
public boolean isExact()
-
-