sophware.home.logic
Class VariableAssignment

java.lang.Object
  extended by sophware.home.logic.VariableAssignment
All Implemented Interfaces:
java.io.Serializable, MacroStep

public class VariableAssignment
extends java.lang.Object
implements MacroStep, java.io.Serializable

VariableAssignement sets the value of a Variable.

Version:
1.0, 02/17/06
Author:
Russell Soph
See Also:
Serialized Form

Constructor Summary
VariableAssignment(Variable var, java.lang.String value)
          Constructs a VariableAssignment
 
Method Summary
 void assign()
          Assigns value to the variable
 void execute()
          the method to execute this step
 java.lang.Object getValue()
           
 Variable getVariable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableAssignment

public VariableAssignment(Variable var,
                          java.lang.String value)
Constructs a VariableAssignment

Parameters:
var - the variable
value - the value to be assigned
Method Detail

getVariable

public Variable getVariable()
Returns:
the Variable

getValue

public java.lang.Object getValue()
Returns:
the value

assign

public void assign()
Assigns value to the variable


execute

public void execute()
Description copied from interface: MacroStep
the method to execute this step

Specified by:
execute in interface MacroStep
See Also:
MacroStep