Math 302, Differential Equations JHU


com.rychlik.calculator
Class StackMachine.Variable

java.lang.Object
  |
  +--com.rychlik.calculator.StackMachine.SymbolTableEntry
        |
        +--com.rychlik.calculator.StackMachine.Variable
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
StackMachine

public class StackMachine.Variable
extends StackMachine.SymbolTableEntry

Describe class Variable here.

See Also:
Serialized Form

Field Summary
 int address
          Describe variable address here.
 
Constructor Summary
StackMachine.Variable(java.lang.String name, int address)
          Creates a new Variable instance.
 
Method Summary
 int getAddress()
          Describe getAddress method here.
 double getValue()
          Describe getValue method here.
 
Methods inherited from class com.rychlik.calculator.StackMachine.SymbolTableEntry
getName, rename
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

address

public final int address
Describe variable address here.

Constructor Detail

StackMachine.Variable

public StackMachine.Variable(java.lang.String name,
                             int address)
Creates a new Variable instance.

Parameters:
name - a String value
address - an int value
Method Detail

getAddress

public int getAddress()
Describe getAddress method here.

Returns:
an int value

getValue

public double getValue()
                throws ParseException
Describe getValue method here.

Returns:
a double value
Throws:
ParseException - if an error occurs



This page last modified Sun Sep 12 12:30:44 2004
Questions? Comments? Please send feedback to jason howald