dk.brics.automaton

Class Transition

public class Transition extends Object implements Serializable, Cloneable

Automaton transition.

A transition, which belongs to a source state, consists of a Unicode character interval and a destination state.

Author: Anders Møller <amoeller@brics.dk>

Constructor Summary
Transition(char c, State to)
Constructs a new singleton interval transition.
Transition(char min, char max, State to)
Constructs a new transition.
Method Summary
StategetDest()
Returns destination of this transition.
chargetMax()
Returns maximum of this transition interval.
chargetMin()
Returns minimum of this transition interval.

Constructor Detail

Transition

public Transition(char c, State to)
Constructs a new singleton interval transition.

Parameters: c transition character to destination state

Transition

public Transition(char min, char max, State to)
Constructs a new transition. Both end points are included in the interval.

Parameters: min transition interval minimum max transition interval maximum to destination state

Method Detail

getDest

public State getDest()
Returns destination of this transition.

getMax

public char getMax()
Returns maximum of this transition interval.

getMin

public char getMin()
Returns minimum of this transition interval.
Copyright © 2001-2008 Anders Møller.