Class StateflowBlock
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
-
- org.eclipse.epsilon.emc.simulink.model.element.StateflowBlock
-
- All Implemented Interfaces:
ISimulinkModelElement
,IModelElement
public class StateflowBlock extends SimulinkModelElement
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
engine, model, superType, type
-
-
Constructor Summary
Constructors Constructor Description StateflowBlock(SimulinkModel model, MatlabEngine engine, Double stateflowId)
FROM IDStateflowBlock(SimulinkModel model, MatlabEngine engine, Integer stateflowId)
StateflowBlock(SimulinkModel model, MatlabEngine engine, String type)
PARENT-LESS CONSTRUCTORSStateflowBlock(SimulinkModel model, MatlabEngine engine, String type, Double stateflowId)
StateflowBlock(SimulinkModel model, MatlabEngine engine, String type, Integer stateflowId)
StateflowBlock(SimulinkModel model, MatlabEngine engine, String type, StateflowBlock parent)
CONSTRUCTORS
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StateflowBlock
add(StateflowBlock block)
SimulinkBlock
asSimulink()
boolean
deleteElementInModel()
boolean
equals(Object other)
Collection<String>
getAllTypeNamesOf()
StateflowBlockCollection
getChildren()
Double
getHandle()
Double
getId()
IDENTIFIERISimulinkModelElement
getParent()
String
getPath()
Object
getProperty(String property)
String
getType()
StateflowBlock
inspect()
Boolean
isCommented()
void
setParent(StateflowBlock parent)
void
setProperty(String property, Object value)
String
toString()
-
Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
getEngine, getOwningModel, getSuperType
-
-
-
-
Constructor Detail
-
StateflowBlock
public StateflowBlock(SimulinkModel model, MatlabEngine engine, String type, StateflowBlock parent) throws MatlabException, EolRuntimeException
CONSTRUCTORS- Throws:
MatlabException
EolRuntimeException
-
StateflowBlock
public StateflowBlock(SimulinkModel model, MatlabEngine engine, String type) throws MatlabException
PARENT-LESS CONSTRUCTORS- Throws:
MatlabException
-
StateflowBlock
public StateflowBlock(SimulinkModel model, MatlabEngine engine, Double stateflowId) throws MatlabException
FROM ID- Throws:
MatlabException
-
StateflowBlock
public StateflowBlock(SimulinkModel model, MatlabEngine engine, Integer stateflowId) throws MatlabException
- Throws:
MatlabException
-
StateflowBlock
public StateflowBlock(SimulinkModel model, MatlabEngine engine, String type, Double stateflowId) throws MatlabException
- Throws:
MatlabException
-
StateflowBlock
public StateflowBlock(SimulinkModel model, MatlabEngine engine, String type, Integer stateflowId) throws MatlabException
- Throws:
MatlabException
-
-
Method Detail
-
getType
public String getType()
- Specified by:
getType
in interfaceISimulinkModelElement
- Overrides:
getType
in classSimulinkModelElement
-
getProperty
public Object getProperty(String property) throws EolIllegalPropertyException
- Throws:
EolIllegalPropertyException
-
setProperty
public void setProperty(String property, Object value) throws EolIllegalPropertyException
- Throws:
EolIllegalPropertyException
-
getId
public Double getId()
IDENTIFIER
-
getPath
public String getPath()
-
getParent
public ISimulinkModelElement getParent() throws EolRuntimeException
- Throws:
EolRuntimeException
-
setParent
public void setParent(StateflowBlock parent) throws EolRuntimeException, MatlabException
- Throws:
EolRuntimeException
MatlabException
-
getChildren
public StateflowBlockCollection getChildren()
-
inspect
public StateflowBlock inspect()
-
equals
public boolean equals(Object other)
- Specified by:
equals
in interfaceISimulinkModelElement
- Overrides:
equals
in classObject
-
getAllTypeNamesOf
public Collection<String> getAllTypeNamesOf()
-
deleteElementInModel
public boolean deleteElementInModel() throws EolRuntimeException
- Throws:
EolRuntimeException
-
add
public StateflowBlock add(StateflowBlock block) throws EolRuntimeException
- Throws:
EolRuntimeException
-
asSimulink
public SimulinkBlock asSimulink() throws EolRuntimeException
- Throws:
EolRuntimeException
-
getHandle
public Double getHandle()
-
isCommented
public Boolean isCommented() throws EolRuntimeException
- Throws:
EolRuntimeException
-
-