darwin.domain
Class Instruction

java.lang.Object
  extended bydarwin.domain.Instruction

public class Instruction
extends java.lang.Object

This class represents an instruction in a Darwin program. An instruction has an Operation and a next step.


Constructor Summary
Instruction(Operation aOperation, int aNextStep)
          Create an Instruction.
 
Method Summary
 int getNextStep()
          Return the next step for this Instruction.
 Operation getOperation()
          Return the Operation for this Instruction.
 java.lang.String toString()
          Return a String representation of this Instruction.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instruction

public Instruction(Operation aOperation,
                   int aNextStep)
Create an Instruction.

Parameters:
aOperation - the operation for this Instruction.
aNextStep - the next step for this Instruction.
Method Detail

getNextStep

public int getNextStep()
Return the next step for this Instruction.

Returns:
the next step for this Instruction.

getOperation

public Operation getOperation()
Return the Operation for this Instruction.

Returns:
the Operation for this Instruction.

toString

public java.lang.String toString()
Return a String representation of this Instruction.

Returns:
the Operation and, if the next step is positive, the next step of this Instruction.