|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgenerator.data.IntervalListNoUnion
public class IntervalListNoUnion
Interval List No Union
This list contains several IntervalNoUnion. It is based on the IntervalList class, but unlike its sibbling, no union is attempted when an interval is added. This is necessary because X and Y contains several contiguous intervals. If X and Y were to be united, both X and Y would be equal to the state space.Copyright(c) 2005 Université Laval, LSFM research group.
Constructor Summary | |
---|---|
IntervalListNoUnion()
Default constructor ... creates an empty list |
Method Summary | |
---|---|
void |
addInterval(IntervalNoUnion i)
Adds an interval to the list |
IntervalNoUnion |
getIntervalAt(int position)
Fetch the IntervalNoUnion at the specified index. |
int |
getSize()
Returns the number of intervals included in the list. |
void |
write(java.io.BufferedWriter output)
Write the current transition list to the disk. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalListNoUnion()
Method Detail |
---|
public IntervalNoUnion getIntervalAt(int position) throws IntervalNoUnionException
position
- the index of the interval to fetch.
IntervalNoUnionException
- should the index be out of bound.public int getSize()
public void write(java.io.BufferedWriter output)
output
- an open writing bufferpublic void addInterval(IntervalNoUnion i)
i
- the interval to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |