|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpipe.io.TransitionRecord
public class TransitionRecord
Constructor Summary | |
---|---|
TransitionRecord()
|
|
TransitionRecord(int from,
int to,
double r)
|
|
TransitionRecord(int from,
int to,
double r,
int t)
|
|
TransitionRecord(Marking from,
Marking to,
double r)
Sets up the record ready for writing to a file. |
Method Summary | |
---|---|
boolean |
equals(TransitionRecord test)
equals() Overrides the Object.equals method. |
int |
getFromState()
|
double |
getRate()
|
int |
getRecordSize()
|
int |
getToState()
|
int |
getTransitionNo()
|
boolean |
read(java.io.RandomAccessFile inputfile)
read() Reads a TransitionRecord from the specified input file. |
boolean |
read1(java.io.RandomAccessFile inputfile)
|
void |
updateRate(double r)
updateRate() When recording a transition from one state to another, it is possible that there will be multiple paths between them through vanishing states. |
void |
write(java.io.RandomAccessFile outputfile)
|
void |
write1(java.io.RandomAccessFile outputfile)
write() Writes a TransitionRecord to the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransitionRecord(Marking from, Marking to, double r)
public TransitionRecord(int from, int to, double r)
public TransitionRecord(int from, int to, double r, int t)
public TransitionRecord()
Method Detail |
---|
public void write1(java.io.RandomAccessFile outputfile) throws java.io.IOException
outputfile
- The file to write data to
java.io.IOException
public void write(java.io.RandomAccessFile outputfile) throws java.io.IOException
java.io.IOException
public boolean read(java.io.RandomAccessFile inputfile) throws java.io.IOException
inputfile
- The file to read data fromss
- A number indicating how many elements there are in a state array
java.io.IOException
public boolean read1(java.io.RandomAccessFile inputfile) throws java.io.IOException
java.io.IOException
public void updateRate(double r)
r
- public int getFromState()
public int getTransitionNo()
public int getToState()
public double getRate()
public int getRecordSize()
public boolean equals(TransitionRecord test)
test
- The record to be compared with
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |