org.jactr.tools.analysis.production.endstates.impl
Class ModifyEndStateComputer

java.lang.Object
  extended by org.jactr.tools.analysis.production.endstates.impl.ModifyEndStateComputer
All Implemented Interfaces:
IBufferEndStateComputer

public class ModifyEndStateComputer
extends java.lang.Object
implements IBufferEndStateComputer

computes the end state for a given buffer where the action is a modify and possibly a condition (well, there'd better be a condition).

Author:
harrison

Constructor Summary
ModifyEndStateComputer()
           
 
Method Summary
 java.util.Collection<BufferEndState> computePossibleEndStatesFor(BufferEndStates endStates, java.lang.String bufferName, SequenceAnalyzer analyzer)
          return a collection of all the possible buffer end states for a given production and buffer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifyEndStateComputer

public ModifyEndStateComputer()
Method Detail

computePossibleEndStatesFor

public java.util.Collection<BufferEndState> computePossibleEndStatesFor(BufferEndStates endStates,
                                                                        java.lang.String bufferName,
                                                                        SequenceAnalyzer analyzer)
Description copied from interface: IBufferEndStateComputer
return a collection of all the possible buffer end states for a given production and buffer. The production sequence analyzer will handle the adding of the end states to the buffer end states structure. It should NOT be done by the computer.

Specified by:
computePossibleEndStatesFor in interface IBufferEndStateComputer
Parameters:
endStates - contains the production ast, as well as cached maps of the actions and conditions
Returns: