autohit.vm
Class VMExecutable

java.lang.Object
  extended byautohit.vm.VMExecutable
All Implemented Interfaces:
java.io.Serializable

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

A VMExecutable is the holding bin for an executable.

When creating a new executable, 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.

Version:
1.0 Version History EPG - Initial - 16apr03
Author:
Erich P. Gatejen
See Also:
Serialized Form

Field Summary
 java.util.ArrayList core
          An array containing an executable.
 int major
          Version major.
 int minor
          Version minor.
 java.lang.String name
          This executable name.
 java.lang.String note
          Associated note.
 NVPair output
          Defines the output variable.
 java.lang.String type
          This the type of executable.
 java.lang.String uid
          This executable UID.
 
Constructor Summary
VMExecutable()
          Default Constructor.
 
Method Summary
 void init()
          Initializes a brand-new executable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

core

public java.util.ArrayList core
An array containing an executable. Each member-object will be a vmInstruction derived class object.

See Also:
VMInstruction

name

public java.lang.String name
This executable name.


uid

public java.lang.String uid
This executable UID. OPTIONAL


type

public java.lang.String type
This the type of executable.


note

public java.lang.String note
Associated note.


major

public int major
Version major.


minor

public int minor
Version minor.


output

public NVPair output
Defines the output variable. The VM should load this to LEFT before returning, if it exists. The output is an name/value pair. The name is the name of the variable and the value is a type discriptor. The latter isn't always useful, but the former is required.

See Also:
NVPair
Constructor Detail

VMExecutable

public VMExecutable()
Default Constructor. It will create an empty VMExecutable. 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 executable. Using this in case this has to be a singleton in the future.



Test.