|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beanexplorer.beans.Option
biouml.model.dynamics.EModelRoleSupport
biouml.model.dynamics.EModel
Genrally this role should be assotiated with Diagram.
| Nested Class Summary | |
static class |
EModel.VariableFilter
|
| Field Summary | |
static int |
ALGEBRAIC_TYPE
|
protected double |
completionTime
|
protected java.util.HashMap |
constantsMap
|
protected DataElement |
elementToRemove
|
static int |
EVENT_TYPE
|
protected java.util.HashMap |
functionsMap
|
protected double |
initialTime
|
static int |
ODE_DELAY_TYPE
|
static int |
ODE_TYPE
|
protected DataCollection |
parameters
|
protected Role |
parsedRole
|
protected Parser |
parser
|
static int |
STATE_TRANSITION_TYPE
|
static int |
STATIC_EQUATIONS_TYPE
|
static int |
STATIC_TYPE
|
protected DataCollection |
variableRoles
|
protected DataCollection |
variables
|
| Fields inherited from class biouml.model.dynamics.EModelRoleSupport |
comment |
| Fields inherited from class com.beanexplorer.beans.Option |
notificationEnabled, propagationEnabled |
| Constructor Summary | |
EModel(DiagramElement de)
|
|
| Method Summary | |
Role |
clone(DiagramElement de)
Unsupported yet. |
boolean |
containsConstant(java.lang.String name)
|
boolean |
containsVariable(java.lang.String name)
|
void |
declareConstant(java.lang.String name,
java.lang.Object value)
Declares the constant. |
void |
declareFunction(Function function)
Declares the function. |
void |
declareVariable(java.lang.String name,
java.lang.Object value)
Declares the variable (parameter). |
void |
elementAdded(DataCollectionEvent e)
Called after data element was added. |
void |
elementChanged(DataCollectionEvent e)
Called after data element was changed. |
void |
elementRemoved(DataCollectionEvent e)
Called after data element was removed. |
void |
elementWillAdd(DataCollectionEvent e)
Called before data element will be added. |
void |
elementWillChange(DataCollectionEvent e)
Called before data element will be changed. |
void |
elementWillRemove(DataCollectionEvent e)
Called before data element will be removed. |
void |
fillList(Compartment compartment,
java.util.List list,
java.lang.Class role)
|
double |
getCompletionTime()
|
java.lang.Object |
getConstantValue(java.lang.String name)
Returns the constant value or null if constant not declared. |
protected java.lang.String |
getEdgeQualifiedName(java.lang.String name,
Edge edge)
|
Equation[] |
getEquations()
|
Event[] |
getEvents()
|
Function |
getFunction(java.lang.String name)
Returns function or operator with the specified name or null if function is not declared. |
Function[] |
getFunctions()
|
State |
getInitialState()
|
double |
getInitialTime()
|
Variable[] |
getInvolvedVariables(java.lang.String equationType)
|
int |
getModelType()
|
java.lang.String |
getModelTypeName()
|
DataCollection |
getParameters()
|
java.lang.String |
getQualifiedName(java.lang.String name,
DiagramElement de)
Resolves brief variable name to fully qualified variable name, using information from corresponding DiagramElement. |
State[] |
getStates()
|
Transition[] |
getTransitions()
|
Variable |
getVariable(java.lang.String name)
|
DataCollection |
getVariableRoles()
|
DataCollection |
getVariables()
|
java.lang.Object |
getVariableValue(java.lang.String name)
Returns value of variable with the specified name or null if variable is not declared. |
protected void |
initParser()
|
static boolean |
isOfType(int type,
int suggestedType)
|
java.util.Iterator |
parameterIterator()
|
void |
propertyChange(java.beans.PropertyChangeEvent pce)
|
void |
put(Variable variable)
Adds variable or parameter to the context. |
protected void |
readMath(Compartment compartment)
|
protected void |
readMath(java.lang.String[] math,
Role role)
|
AstStart |
readMath(java.lang.String math,
Role role)
|
ParserContext |
removeNotUsedParameters()
|
void |
setCompletionTime(double completionTime)
|
void |
setInitialState(State initialState)
|
void |
setInitialTime(double initialTime)
|
java.util.Iterator |
variableRoleIterator()
|
| Methods inherited from class biouml.model.dynamics.EModelRoleSupport |
getComment, getDiagramElement, setComment |
| 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 |
protected double initialTime
protected double completionTime
protected java.util.HashMap constantsMap
protected java.util.HashMap functionsMap
protected DataCollection variables
protected DataCollection variableRoles
protected DataCollection parameters
public static final int STATIC_TYPE
public static final int STATIC_EQUATIONS_TYPE
public static final int ODE_TYPE
public static final int ODE_DELAY_TYPE
public static final int ALGEBRAIC_TYPE
public static final int EVENT_TYPE
public static final int STATE_TRANSITION_TYPE
protected Parser parser
protected Role parsedRole
protected DataElement elementToRemove
| Constructor Detail |
public EModel(DiagramElement de)
| Method Detail |
public Role clone(DiagramElement de)
clone in interface Roleclone in class EModelRoleSupportpublic double getInitialTime()
public void setInitialTime(double initialTime)
public double getCompletionTime()
public void setCompletionTime(double completionTime)
public boolean containsConstant(java.lang.String name)
containsConstant in interface ParserContextpublic java.lang.Object getConstantValue(java.lang.String name)
ParserContext
getConstantValue in interface ParserContext
public void declareConstant(java.lang.String name,
java.lang.Object value)
ParserContext
declareConstant in interface ParserContextpublic Function getFunction(java.lang.String name)
ParserContext
getFunction in interface ParserContextpublic void declareFunction(Function function)
ParserContext
declareFunction in interface ParserContextpublic DataCollection getVariables()
public boolean containsVariable(java.lang.String name)
containsVariable in interface ParserContextpublic java.lang.Object getVariableValue(java.lang.String name)
getVariableValue in interface ParserContext
public void declareVariable(java.lang.String name,
java.lang.Object value)
declareVariable in interface ParserContextname - - parameter namevalue - - parameter value, should be instance of Double.public void put(Variable variable)
public Variable getVariable(java.lang.String name)
public DataCollection getVariableRoles()
public java.util.Iterator variableRoleIterator()
public DataCollection getParameters()
public java.util.Iterator parameterIterator()
public Equation[] getEquations()
public Event[] getEvents()
public State[] getStates()
public Transition[] getTransitions()
public Variable[] getInvolvedVariables(java.lang.String equationType)
public void fillList(Compartment compartment,
java.util.List list,
java.lang.Class role)
public Function[] getFunctions()
public int getModelType()
public java.lang.String getModelTypeName()
public static boolean isOfType(int type,
int suggestedType)
public java.lang.String getQualifiedName(java.lang.String name,
DiagramElement de)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if variable name is ambiguous.
protected java.lang.String getEdgeQualifiedName(java.lang.String name,
Edge edge)
public void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange in interface java.beans.PropertyChangeListenerprotected void initParser()
protected void readMath(java.lang.String[] math,
Role role)
public AstStart readMath(java.lang.String math,
Role role)
public ParserContext removeNotUsedParameters()
protected void readMath(Compartment compartment)
public void elementWillAdd(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillAdd in interface DataCollectionListenere - DataCollectionEvent information about will added data element.
DataCollectionVetoException - If listener cancel adding of data element.
java.lang.Exception - If error occured.
public void elementAdded(DataCollectionEvent e)
throws java.lang.Exception
DataCollectionListener
elementAdded in interface DataCollectionListenere - DataCollectionEvent information about added data element.
java.lang.Exception - If error occured.
public void elementWillRemove(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListener
elementWillRemove in interface DataCollectionListenere - DataCollectionEvent information about will removed data element.
DataCollectionVetoException - If listener cancel removing of data element.
java.lang.Exception - If error occured.
public void elementRemoved(DataCollectionEvent e)
throws java.lang.Exception
DataCollectionListener
elementRemoved in interface DataCollectionListenere - DataCollectionEvent information about removed data element.
java.lang.Exception - If error occured.
public void elementWillChange(DataCollectionEvent e)
throws DataCollectionVetoException,
java.lang.Exception
DataCollectionListenere contains old data element (which will be changed).
elementWillChange in interface DataCollectionListenere - DataCollectionEvent information about will change data element.
DataCollectionVetoException - If listener cancel changing of data element.
java.lang.Exception - If error occured.
public void elementChanged(DataCollectionEvent e)
throws java.lang.Exception
DataCollectionListenere contains old data element (which already changed).
elementChanged in interface DataCollectionListenere - DataCollectionEvent information about changed data element.
java.lang.Exception - If error occured.public State getInitialState()
public void setInitialState(State initialState)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||