moves
Class BeginPremise

java.lang.Object
  |
  +--moves.EuMove
        |
        +--moves.bracketFamily
              |
              +--moves.BeginPremise

public class BeginPremise
extends moves.bracketFamily

Implements the LEA command BeginPremise


Field Summary
 
Fields inherited from class moves.EuMove
allowedSegments, in, out
 
Constructor Summary
BeginPremise(interagents.finalWrapper in, interagents.finalWrapper out, fundamentals.EuArguments args, int beacon)
          This constructor checks syntax and sets up the variables in, out, in.mode, out.mode
 
Method Summary
protected  void exMain(interagents.EuLab lab)
          Executes core commands of the move in main mode, possibly affecting the passed @see EuLab Calls ex() as default.
protected  int postprocess(interagents.EuLab lab, librarian.ppProcessor ppp)
          Performs various postprocessing of the move, updating the ppProcessor and changing segment.
protected  boolean specialSegmentOK(int segment)
          Determines whether a call to this move is legal in the passed special segment.
 
Methods inherited from class moves.EuMove
checkSegment, ex, executeMacro, executeMain, executeSegmentOnly, exMacro, getFirstOutIndex, initArguments, initBeacon, iobUsageChecks, issueBeacon, name, operationName, passExceptionDetails, passHintDetails, passSelection, postMacro, postMain, preMacro, preMain, preprocess, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeginPremise

public BeginPremise(interagents.finalWrapper in,
                    interagents.finalWrapper out,
                    fundamentals.EuArguments args,
                    int beacon)
             throws DesignException
This constructor checks syntax and sets up the variables in, out, in.mode, out.mode

Parameters:
in - the input @see finalWrapper
out - the output @see finalWrapper
args - arguments
beacon - a beacon, or 0 if no such was requested
Method Detail

specialSegmentOK

protected boolean specialSegmentOK(int segment)
Determines whether a call to this move is legal in the passed special segment. This instance true only for BEFORE_PREMISE.

Overrides:
specialSegmentOK in class EuMove
Parameters:
segment - the current segment
Returns:
true if a call to this move is legal in the passed special segment

postprocess

protected int postprocess(interagents.EuLab lab,
                          librarian.ppProcessor ppp)
                   throws LeaException
Performs various postprocessing of the move, updating the ppProcessor and changing segment.

Overrides:
postprocess in class EuMove
Parameters:
ppp - the ppProcessor to be updated
Returns:
the new segment, PREMISE
LeaException

exMain

protected void exMain(interagents.EuLab lab)
               throws LeaException
Description copied from class: EuMove
Executes core commands of the move in main mode, possibly affecting the passed @see EuLab Calls ex() as default.

Overrides:
exMain in class EuMove
Parameters:
lab - the @see EuLab on which to work
LeaException