moves
Class ConstructCircle

java.lang.Object
  |
  +--moves.EuMove
        |
        +--moves.constructFamily
              |
              +--moves.ConstructCircle

public class ConstructCircle
extends constructFamily

Implements the LEA command ConstructCircle


Field Summary
 
Fields inherited from class moves.EuMove
allowedSegments, in, out
 
Constructor Summary
ConstructCircle(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
ConstructCircle(java.util.Vector inputs, java.util.Vector results, java.util.Vector newResults, interagents.EuLab lab)
          This constructor creates, given a selection of objects from a user, a move which the user may elect to perform.
 
Method Summary
protected  void findAllConstructs(interagents.explicitHolder results, interagents.EuLab lab)
          Constructs a circle and places it in the provided explicitHolder.
 java.lang.String operationName()
           
 
Methods inherited from class moves.constructFamily
ex, issueBeacon, postprocess, refineConstructs
 
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, preprocess, specialSegmentOK, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConstructCircle

public ConstructCircle(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

ConstructCircle

public ConstructCircle(java.util.Vector inputs,
                       java.util.Vector results,
                       java.util.Vector newResults,
                       interagents.EuLab lab)
                throws LeaException
This constructor creates, given a selection of objects from a user, a move which the user may elect to perform. The constructor may end in exception if not all criteria for the move are met.

Parameters:
lab - the current EuLab
Method Detail

findAllConstructs

protected void findAllConstructs(interagents.explicitHolder results,
                                 interagents.EuLab lab)
                          throws LeaException
Constructs a circle and places it in the provided explicitHolder.

Overrides:
findAllConstructs in class constructFamily
Parameters:
results - an explicitHolder in which to put results
lab - the EuLab in which to get the objects with which to construct
Throws:
LeaRuntimeException - if radius is not set
LeaException

operationName

public java.lang.String operationName()
Overrides:
operationName in class EuMove