autohit
Class Sim

java.lang.Object
  |
  +--autohit.Sim

public class Sim
extends java.lang.Object
implements java.io.Serializable

Sim is the basic class for a simulation. Each represents a use-flow for a single user. It can handle authentication for a single user.

Sim's do not have a version reference. Putting a compiled Sim from one version into a vm of another version can have unpredictable results.

When creating a new Sim, you must call the init() member after construction. If you do not, you will eventually get an internal exception. If you are deserializing, don't worry about it.

See Also:
Serialized Form

Field Summary
 java.util.Vector exec
          A vector containing the Simulation executable.
 java.lang.String name
          This sim's name.
 java.lang.String note
          Associated note.
 
Constructor Summary
Sim()
          Default Constructor.
 
Method Summary
 void init()
          Initializes a brand-new Sim().
 java.lang.String toString()
          Dump this SIM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exec

public java.util.Vector exec
A vector containing the Simulation executable. Each member-object will be a vmInstruction derived class object.
See Also:
VMInstruction

name

public java.lang.String name
This sim's name. NOTE! SimCompiler currently requires a uid attribute for the tag, but it isn't used for anything now.

note

public java.lang.String note
Associated note.
Constructor Detail

Sim

public Sim()
Default Constructor. It will create an empty Sim. Remember! If you are creating a new Sim, but sure to call init().
See Also:
init()
Method Detail

init

public void init()
Initializes a brand-new Sim().

toString

public java.lang.String toString()
Dump this SIM. I'm putting this in for debugging. It might have some other uses...
Returns:
a String containing the dump.
Overrides:
toString in class java.lang.Object