iitb.Model
Class GenericModel

java.lang.Object
  extended byiitb.Model.GenericModel
All Implemented Interfaces:
Model

public class GenericModel
extends java.lang.Object
implements Model

Author:
Sunita Sarawagi

Nested Class Summary
 class GenericModel.GenericEdgeIterator
           
 
Constructor Summary
GenericModel(java.lang.String spec)
           
 
Method Summary
 iitb.Model.EdgeIterator edgeIterator()
           
 int endState(int i)
           
 boolean isEndState(int i)
           
 boolean isStartState(int i)
           
 int label(int s)
           
 int numEdges()
           
 int numEndStates()
           
 int numStartStates()
           
 int numStates()
           
 int startState(int i)
          return the i-th start state
 void stateMappings(DataSequence data)
           
 void stateMappings(DataSequence data, int len, int start)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericModel

public GenericModel(java.lang.String spec)
             throws java.lang.Exception
Method Detail

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.