laser.regularlanguage.fsa
Interface FSATransitionInterface<L extends LabelInterface>

Type Parameters:
L - The type of Label associated with the FSA that contains this transition.
All Superinterfaces:
Annotatable, java.lang.Comparable<FSATransitionInterface<L>>, java.io.Serializable
All Known Subinterfaces:
FSAEpsilonTransitionInterface<L>, FSALabelPatternTransitionInterface<L>, FSALabelTransitionInterface<L>
All Known Implementing Classes:
AbstractFSATransition, FSAEpsilonTransition, FSALabelPatternTransition, FSALabelTransition

public interface FSATransitionInterface<L extends LabelInterface>
extends Annotatable, java.lang.Comparable<FSATransitionInterface<L>>, java.io.Serializable

Classes implementing this interface represent transitions in FSAs of type FSAInterface. Instances of FSATransitionInterface can not exist independently of FSAs; they should only be created by the appropriate factory method (Design Patterns, Gamma, Helm, Johnson, and Vlissides, p107, 1995) of an FSAInterface, never by their constructors.

Each FSATransitionInterface has an ID number, represented by an int. Among all the FSATransitionInterfaces in a given FSAInterface the ID numbers are unique.

Author:
Nathan Jokel (laser-software@cs.umass.edu)
See Also:
FSAInterface

Method Summary
 FSAInterface<L> getFSA()
          Returns the FSA that contains this transition.
 int getID()
          Returns the ID of this transition.
 FSAStateInterface<L> getSource()
          Returns the state that is the source of this transition (the result of evaluating the source function of the FSA that contains this transition with this transition as input).
 FSAStateInterface<L> getTarget()
          Returns the state that is the target of this transition (the result of evaluating the target function of the FSA that contains this transition with this transition as input).
 
Methods inherited from interface laser.util.Annotatable
addAnnotation, addAnnotations, copyAnnotations, getAnnotationClasses, getAnnotationClasses, getAnnotationFilters, getAnnotations, getAnnotations, removeAnnotation, removeAnnotations, removeAnnotations, removeAnnotations, setAnnotationFilters
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getFSA

FSAInterface<L> getFSA()
Returns the FSA that contains this transition.

Returns:
The FSA that contains this transition.

getID

int getID()
Returns the ID of this transition.

Returns:
the ID of this transition.

getSource

FSAStateInterface<L> getSource()
Returns the state that is the source of this transition (the result of evaluating the source function of the FSA that contains this transition with this transition as input).

Returns:
The state that is the source of this transition.

getTarget

FSAStateInterface<L> getTarget()
Returns the state that is the target of this transition (the result of evaluating the target function of the FSA that contains this transition with this transition as input).

Returns:
The state that is the target of this transition.