moves
Class TestDatum

java.lang.Object
  |
  +--moves.EuMove
        |
        +--moves.TestDatum

public class TestDatum
extends EuMove

A move for passing test data Has no functionality except when run by runTestTo(). Allowed only in BEFORE_END segment, and hence should never be run.


Field Summary
protected  fundamentals.EuArguments commandArguments
          Contains arguments to be passed on
protected  fundamentals.EuArguments workArguments
          ARguments are collected here in design mode
 
Fields inherited from class moves.EuMove
allowedSegments, in, out
 
Constructor Summary
TestDatum(interagents.finalWrapper in, interagents.finalWrapper out, fundamentals.EuArguments args, int beacon)
          The constructor checks that no input, output or beacon is passed, that there is at most one argument
 
Method Summary
 int countArguments()
           
protected  void exMacro(interagents.EuLab lab, interagents.explicitHolder caller)
          Executes core commands of the move in macro mode, possibly affecting the passed @see EuLab Send or recieve data to/from calling program as explicits in a passed explicitHolder.
 boolean isDummy()
           
protected  int postMacro(interagents.EuLab lab, librarian.ppProcessor ppp)
           
protected  int postMain(interagents.EuLab lab, librarian.ppProcessor ppp)
          Performs various postprocessing of the move, updating the ppProcessor and changing segment.
 void setArgument(fundamentals.EuArguments args)
           
protected  boolean specialSegmentOK(int segment)
          Determines whether a call to this move is legal in the passed special segment.
 java.lang.String toString()
          Document the move
 
Methods inherited from class moves.EuMove
checkSegment, ex, executeMacro, executeMain, executeSegmentOnly, exMain, getFirstOutIndex, initArguments, initBeacon, iobUsageChecks, issueBeacon, name, operationName, passExceptionDetails, passHintDetails, passSelection, postprocess, preMacro, preMain, preprocess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

commandArguments

protected fundamentals.EuArguments commandArguments
Contains arguments to be passed on


workArguments

protected fundamentals.EuArguments workArguments
ARguments are collected here in design mode

Constructor Detail

TestDatum

public TestDatum(interagents.finalWrapper in,
                 interagents.finalWrapper out,
                 fundamentals.EuArguments args,
                 int beacon)
          throws DesignException
The constructor checks that no input, output or beacon is passed, that there is at most one argument

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

postMain

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

Overrides:
postMain in class EuMove
Parameters:
ppp - the ppProcessor to be updated
LeaException

postMacro

protected int postMacro(interagents.EuLab lab,
                        librarian.ppProcessor ppp)
                 throws LeaException
Overrides:
postMacro in class EuMove
LeaException

exMacro

protected void exMacro(interagents.EuLab lab,
                       interagents.explicitHolder caller)
                throws LeaException
Description copied from class: EuMove
Executes core commands of the move in macro mode, possibly affecting the passed @see EuLab Send or recieve data to/from calling program as explicits in a passed explicitHolder. Forgets explicitHolder as default and calls ex().

Overrides:
exMacro in class EuMove
Parameters:
lab - the @see EuLab on which to work
caller - the explicitHolder with which to communicate with the calling program.
LeaException

toString

public java.lang.String toString()
Description copied from class: EuMove
Document the move

Overrides:
toString in class EuMove
Returns:
A string representation of this LEA command

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

setArgument

public void setArgument(fundamentals.EuArguments args)

isDummy

public boolean isDummy()

countArguments

public int countArguments()