|
simulink | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.simulink.model.ParameterizedElement
edu.tum.cs.simulink.model.stateflow.StateflowElementBase<P>
edu.tum.cs.simulink.model.stateflow.StateflowDeclContainerBase<IStateflowElement<?>>
edu.tum.cs.simulink.model.stateflow.StateflowMachine
public class StateflowMachine
The Stateflow machine is the container element of all Stateflow elements of a Simulink model. There is only one machine per model and Stateflow machines do not have a parent element.
Constructor Summary | |
---|---|
StateflowMachine(SimulinkModel model)
Create new machine. |
|
StateflowMachine(StateflowMachine orig,
SimulinkModel model)
Copy constructor. |
Method Summary | |
---|---|
void |
addChart(java.lang.String fqName,
StateflowChart chart)
Add chart to the machine. |
void |
addTarget(StateflowTarget target)
Add a target. |
StateflowMachine |
deepClone()
This throws a UnsupportedOperationException as the machine can
only be deep cloned by cloning the SimulinkModel it belongs to. |
StateflowChart |
getChart(java.lang.String fqName)
Get chart for full qualified name of the Stateflow block the chart belongs to. |
|
getCharts()
Get charts of this machine. |
SimulinkModel |
getModel()
Get the Simulink model this machine belongs to. |
|
getTargets()
Get targets of this machine. |
void |
remove()
Removes the machine from the model. |
Methods inherited from class edu.tum.cs.simulink.model.stateflow.StateflowDeclContainerBase |
---|
addData, addEvent, getData, getEvents |
Methods inherited from class edu.tum.cs.simulink.model.stateflow.StateflowElementBase |
---|
getParent, getStateflowId, toString |
Methods inherited from class edu.tum.cs.simulink.model.ParameterizedElement |
---|
getDeclaredParameter, getDeclaredParameterNames, getParameter, getParameterNames, setParameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StateflowMachine(SimulinkModel model)
public StateflowMachine(StateflowMachine orig, SimulinkModel model)
StateflowBlock
s they belong to.
orig
- original machinemodel
- model the clone belongs to.Method Detail |
---|
public void addChart(java.lang.String fqName, StateflowChart chart)
fqName
- full qualified name of the Stateflow block this chart belongs
to.chart
- the chart.public void addTarget(StateflowTarget target)
public StateflowMachine deepClone()
UnsupportedOperationException
as the machine can
only be deep cloned by cloning the SimulinkModel
it belongs to.
public StateflowChart getChart(java.lang.String fqName)
publicgetCharts()
public SimulinkModel getModel()
publicgetTargets()
public void remove()
StateflowBlock
s were removed.
remove
in interface IStateflowElement<IStateflowElement<?>>
remove
in class StateflowElementBase<IStateflowElement<?>>
|
simulink | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |