moves
Class Run
java.lang.Object
|
+--moves.EuMove
|
+--moves.Run
- public class Run
- extends EuMove
This class is behind the LEA move Run
Field Summary |
protected java.util.Random |
croupier
|
protected librarian.EuLibrarian |
librarian
|
Constructor Summary |
Run(interagents.finalWrapper in,
interagents.finalWrapper out,
fundamentals.EuArguments args,
int beacon)
This constructor checks syntax, given full information for a LEA program. |
Run(java.lang.String name,
java.util.Vector inputs,
java.util.Vector results,
java.util.Vector newResults,
interagents.EuLab lab)
|
Method Summary |
protected void |
ex(interagents.EuLab lab)
Performs the constructions and resolves output. |
java.lang.String |
operationName()
|
void |
passLabel(java.util.Vector other)
|
protected int |
postprocess(interagents.EuLab lab,
librarian.ppProcessor ppp)
Performs various postprocessing of the move, updating the ppProcessor
if necessary.
|
protected void |
preprocess(librarian.ppProcessor ppp)
Performs various preprocessing of the move.
|
Methods inherited from class moves.EuMove |
checkSegment, executeMacro, executeMain, executeSegmentOnly, exMacro, exMain, getFirstOutIndex, initArguments, initBeacon, iobUsageChecks, issueBeacon, name, passExceptionDetails, passHintDetails, passSelection, postMacro, postMain, preMacro, preMain, specialSegmentOK, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
librarian
protected librarian.EuLibrarian librarian
croupier
protected java.util.Random croupier
Run
public Run(interagents.finalWrapper in,
interagents.finalWrapper out,
fundamentals.EuArguments args,
int beacon)
throws DesignException
- This constructor checks syntax, given full information for a LEA program.
- Parameters:
in
- the input @see finalWrapperout
- the output @see finalWrapperargs
- argumentsbeacon
- a beacon, or 0 if no such was requested
Run
public Run(java.lang.String name,
java.util.Vector inputs,
java.util.Vector results,
java.util.Vector newResults,
interagents.EuLab lab)
throws LeaException
ex
protected void ex(interagents.EuLab lab)
throws LeaException
- Performs the constructions and resolves output.
- Overrides:
ex
in class EuMove
- Parameters:
lab
- the EuLab in which to put the constructions and get
the objects to perform them
- Returns:
- the segment
LeaException
preprocess
protected void preprocess(librarian.ppProcessor ppp)
throws LeaException
- Performs various preprocessing of the move.
Updates in- or output given in pidgin or by label. This instance also
collects a librarian for use in executing the move.
- Overrides:
preprocess
in class EuMove
- Parameters:
ppp
- the ppProcessor from which to get
additional information
LeaException
postprocess
protected int postprocess(interagents.EuLab lab,
librarian.ppProcessor ppp)
throws LeaException
- Performs various postprocessing of the move, updating the ppProcessor
if necessary.
The actions may be segment-dependent. As default only the history
function of the ppProcessor is updated. Is overwritten in
bracketFamily to alter current segment.
- Overrides:
postprocess
in class EuMove
- Parameters:
ppp
- the ppProcessor to be updated
- Returns:
- the new segment
LeaException
passLabel
public void passLabel(java.util.Vector other)
operationName
public java.lang.String operationName()
- Overrides:
operationName
in class EuMove