darwin.domain
Class MyProgram

java.lang.Object
  extended bydarwin.domain.MyProgram
All Implemented Interfaces:
Program

public class MyProgram
extends java.lang.Object
implements Program

This class represents the sequence of Instructions in a Darwin program. Instruction step numbers begin at 1.


Constructor Summary
MyProgram()
          Construct a MyProgram.
 
Method Summary
 java.lang.String toString()
          Determine a String representation of this MyProgram.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface darwin.domain.Program
add, getInstruction, getSize
 

Constructor Detail

MyProgram

public MyProgram()
Construct a MyProgram. Initializes its sequence of Instructions to an empty sequence.

Method Detail

toString

public java.lang.String toString()
Determine a String representation of this MyProgram.

Returns:
a String representation of this MyProgram.