Class Variable
java.lang.Object
|
+----Symbol
|
+----Variable
- class Variable
- extends Symbol
- implements Cloneable
A variable defined by they RoBOTL programmer in a new robot type.
- Author:
- Peter Sagerson, petersag@wpi.edu
-
value
- The current value of the variable.
-
Variable(String)
- Initializes the variable to zero.
-
Variable(String, int)
- Initializes the variable to
n.
-
clone()
-
value
public int value
- The current value of the variable. In a
Variable object
referenced by a RobotType, this is the initial value.
Variable
public Variable(String name) throws NameLengthException
- Initializes the variable to zero.
Variable
public Variable(String name,
int n) throws NameLengthException
- Initializes the variable to
n.
clone
public Object clone()
- Overrides:
- clone in class Object