Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.maloi.evolvo.expressiontree.utilities
Class VariablePackage  view VariablePackage download VariablePackage.java

java.lang.Object
  extended byorg.maloi.evolvo.expressiontree.utilities.VariablePackage
All Implemented Interfaces:
java.io.Serializable

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

Keeps a list of variables available for use in an expressionTree.


Field Summary
(package private) static VariablePackage _instance
           
(package private) static java.util.HashMap vars
          Stores the variables.
 
Constructor Summary
private VariablePackage()
          Creates instances for each variable in the package.
 
Method Summary
static VariablePackage getInstance()
           
 org.maloi.evolvo.expressiontree.Variable getVariable(java.lang.String which)
          Returns a variable by its name.
 org.maloi.evolvo.expressiontree.Variable[] getVariables()
          This ought to be removed, and all code that uses it rewritten.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vars

static java.util.HashMap vars
Stores the variables.


_instance

static VariablePackage _instance
Constructor Detail

VariablePackage

private VariablePackage()
Creates instances for each variable in the package.

Method Detail

getInstance

public static VariablePackage getInstance()

getVariable

public org.maloi.evolvo.expressiontree.Variable getVariable(java.lang.String which)
Returns a variable by its name.


getVariables

public org.maloi.evolvo.expressiontree.Variable[] getVariables()
This ought to be removed, and all code that uses it rewritten. Seriously.