rasmus.interpreter.math
Class DoublePart

java.lang.Object
  extended by rasmus.interpreter.VariablePartAdapter
      extended by rasmus.interpreter.math.DoublePart
All Implemented Interfaces:
DoublePartListener, VariablePart

public final class DoublePart
extends VariablePartAdapter
implements DoublePartListener


Field Summary
 java.util.List listeners
           
 
Constructor Summary
DoublePart()
           
DoublePart(boolean immutable)
           
 
Method Summary
 void add(Variable variable)
           
 void addListener(DoublePartListener listener)
           
static double asDouble(Variable variable)
           
static Variable asVariable(double value)
           
 void clear()
           
 double getDouble()
           
static DoublePart getInstance(Variable variable)
           
 boolean isImmutable()
           
 void remove(Variable variable)
           
 void removeListener(DoublePartListener listener)
           
 void sendValueChanged(double before, double after)
           
 void valueChanged(DoublePart source, double before, double after)
           
 
Methods inherited from class rasmus.interpreter.VariablePartAdapter
getVariable, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

public java.util.List listeners
Constructor Detail

DoublePart

public DoublePart()

DoublePart

public DoublePart(boolean immutable)
Method Detail

isImmutable

public boolean isImmutable()

asVariable

public static Variable asVariable(double value)

asDouble

public static double asDouble(Variable variable)

getInstance

public static DoublePart getInstance(Variable variable)

getDouble

public double getDouble()

add

public void add(Variable variable)
Specified by:
add in interface VariablePart

remove

public void remove(Variable variable)
Specified by:
remove in interface VariablePart

clear

public void clear()
Specified by:
clear in interface VariablePart

valueChanged

public void valueChanged(DoublePart source,
                         double before,
                         double after)
Specified by:
valueChanged in interface DoublePartListener

sendValueChanged

public void sendValueChanged(double before,
                             double after)

addListener

public void addListener(DoublePartListener listener)

removeListener

public void removeListener(DoublePartListener listener)