Class Command

java.lang.Object
  |
  +--Command

public class Command
extends java.lang.Object

Command class. Used for constructing commands of one or two variables.


Field Summary
private  java.lang.String type
           
private  double var1
           
private  double var2
           
 
Constructor Summary
Command(java.lang.String t, double x)
          Command constructor for creating a command of one variable.
Command(java.lang.String t, double x1, double x2)
          Command constructor for creating a command of two variables.
 
Method Summary
 java.lang.String getType()
          getType method.
 double getVar1()
          getVar1 method.
 double getVar2()
          getVar2 method.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

type

private java.lang.String type

var1

private double var1

var2

private double var2
Constructor Detail

Command

public Command(java.lang.String t,
               double x)
Command constructor for creating a command of one variable.
Parameters:
t - Command type
x - Command variable

Command

public Command(java.lang.String t,
               double x1,
               double x2)
Command constructor for creating a command of two variables.
Parameters:
t - Command type
x1 - First Command variable
x2 - Second Command variable
Method Detail

getType

public java.lang.String getType()
getType method. Returns to the calling method the command type.
Returns:
Command type

getVar1

public double getVar1()
getVar1 method. Returns to the calling method the first command variable.
Returns:
First command variable

getVar2

public double getVar2()
getVar2 method. Returns to the calling method the command type.
Returns:
Second command variable