iitb.Model
Class GenericModel
java.lang.Object
iitb.Model.GenericModel
- All Implemented Interfaces:
- Model
- public class GenericModel
- extends java.lang.Object
- implements Model
- Author:
- Sunita Sarawagi
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericModel
public GenericModel(java.lang.String spec)
throws java.lang.Exception
label
public int label(int s)
- Specified by:
label
in interface Model
numStates
public int numStates()
- Specified by:
numStates
in interface Model
numEdges
public int numEdges()
- Specified by:
numEdges
in interface Model
numStartStates
public int numStartStates()
- Specified by:
numStartStates
in interface Model
startState
public int startState(int i)
- Description copied from interface:
Model
- return the i-th start state
- Specified by:
startState
in interface Model
numEndStates
public int numEndStates()
- Specified by:
numEndStates
in interface Model
endState
public int endState(int i)
- Specified by:
endState
in interface Model
isEndState
public boolean isEndState(int i)
- Specified by:
isEndState
in interface Model
isStartState
public boolean isStartState(int i)
- Specified by:
isStartState
in interface Model
stateMappings
public void stateMappings(DataSequence data)
throws java.lang.Exception
- Specified by:
stateMappings
in interface Model
- Throws:
java.lang.Exception
stateMappings
public void stateMappings(DataSequence data,
int len,
int start)
throws java.lang.Exception
- Specified by:
stateMappings
in interface Model
- Throws:
java.lang.Exception
edgeIterator
public iitb.Model.EdgeIterator edgeIterator()
- Specified by:
edgeIterator
in interface Model
Submit a bug or feature.