com.inxar.syntacs.automaton.pushdown
Class MesoArrayDPA

java.lang.Object
  |
  +--com.inxar.syntacs.automaton.pushdown.MesoArrayDPA
All Implemented Interfaces:
DPA, Serializable

public class MesoArrayDPA
extends Object
implements DPA, Serializable

Concrete DPA implementation which uses meso-array parse tables.

See Also:
Serialized Form

Field Summary
 int[][] action
           
 int[] actions
           
 int[][] go
           
 
Fields inherited from interface org.inxar.syntacs.automaton.pushdown.DPA
START_STATE
 
Constructor Summary
MesoArrayDPA(int[][] action, int[][] go, int[] actions)
          Constructs the MesoArrayDPA on the given action transition table, go transition table, and action table.
 
Method Summary
 Action action(int state_num, int symbol)
          Returns the Action associated by traversing the path given from the given state over the given symbol.
 int go(int state_num, int symbol)
          Returns the state reached upon transition after reduction to the given nonterminal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

action

public int[][] action

go

public int[][] go

actions

public int[] actions
Constructor Detail

MesoArrayDPA

public MesoArrayDPA(int[][] action,
                    int[][] go,
                    int[] actions)
Constructs the MesoArrayDPA on the given action transition table, go transition table, and action table.
Method Detail

action

public Action action(int state_num,
                     int symbol)
Description copied from interface: DPA
Returns the Action associated by traversing the path given from the given state over the given symbol. The Action object returned should never be null but may be the error action.
Specified by:
action in interface DPA

go

public int go(int state_num,
              int symbol)
Description copied from interface: DPA
Returns the state reached upon transition after reduction to the given nonterminal.
Specified by:
go in interface DPA