biouml.model.dynamics
Class Assignment

java.lang.Object
  extended bycom.beanexplorer.beans.Option
      extended bybiouml.model.dynamics.Assignment
All Implemented Interfaces:
ExpressionOwner

public class Assignment
extends com.beanexplorer.beans.Option
implements ExpressionOwner

The Assignment structures represent variable assignments which have effect when the event is executed.


Field Summary
protected  java.lang.String math
          Expresison that used to calculate new value of the variable.
protected  java.lang.String variable
          Name of variable whose value should be changed.
 
Fields inherited from class com.beanexplorer.beans.Option
notificationEnabled, propagationEnabled
 
Constructor Summary
Assignment(java.lang.String variable, java.lang.String math)
           
 
Method Summary
 java.lang.String[] getExpressions()
          Returns all owned mathematical expressions.
 java.lang.String getMath()
           
 EModelRole getRole()
          Return role object essential to variables name resolving.
 java.lang.String getVariable()
           
 boolean isExpression(java.lang.String propertyName)
          Returns true if property contains string that should be parsed as mathematical expression.
 void setMath(java.lang.String math)
           
 void setVariable(java.lang.String variable)
           
 
Methods inherited from class com.beanexplorer.beans.Option
addPropertyChangeListener, copyListenersTo, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getParent, isNotificationEnabled, isPropagationEnabled, removePropertyChangeListener, setNotificationEnabled, setParent, setPropagationEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

variable

protected java.lang.String variable
Name of variable whose value should be changed.


math

protected java.lang.String math
Expresison that used to calculate new value of the variable.

Constructor Detail

Assignment

public Assignment(java.lang.String variable,
                  java.lang.String math)
Method Detail

getVariable

public java.lang.String getVariable()

setVariable

public void setVariable(java.lang.String variable)

getMath

public java.lang.String getMath()

setMath

public void setMath(java.lang.String math)

isExpression

public boolean isExpression(java.lang.String propertyName)
Description copied from interface: ExpressionOwner
Returns true if property contains string that should be parsed as mathematical expression.

Specified by:
isExpression in interface ExpressionOwner

getExpressions

public java.lang.String[] getExpressions()
Description copied from interface: ExpressionOwner
Returns all owned mathematical expressions. Currently this methods is used to remove unused parameters.

Specified by:
getExpressions in interface ExpressionOwner

getRole

public EModelRole getRole()
Description copied from interface: ExpressionOwner
Return role object essential to variables name resolving.

Specified by:
getRole in interface ExpressionOwner


Copyright © 2001-2003 Biosof.Ru. All Rights Reserved.