Class SimulinkBlock
java.lang.Object
org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
org.eclipse.epsilon.emc.simulink.model.element.SimulinkBlock
- All Implemented Interfaces:
ISimulinkModelElement,IModelElement
-
Field Summary
Fields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
ADD_BLOCK_MAKE_NAME_UNIQUE_ON, GET_FULL_NAME, GET_HANDLE_PROPERTY, GET_SIMULINK_KIND, GET_SIMULINK_TYPE, handle, HANDLEFields inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
engine, model, superType, type -
Constructor Summary
ConstructorsConstructorDescriptionSimulinkBlock(String path, SimulinkModel model, MatlabEngine engine) SimulinkBlock(SimulinkModel model, MatlabEngine engine, Double handle) CONSTRUCTORSSimulinkBlock(SimulinkModel model, MatlabEngine engine, String type) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected StringPARENT / CHILDRENgetPorts()inspect()voidlink(SimulinkBlock other) voidlink(SimulinkBlock other, int outPort, int inPort) voidlinkFrom(SimulinkBlock other, int outPort) voidlinkTo(SimulinkBlock other, int inPort) voidmanageLink(SimulinkBlock other, int outPort, int inPort, boolean create) voidsetParent(SimulinkBlock parent) voidTYPE-SPECIFIC METHODSvoidunlink(SimulinkBlock other) voidunlink(SimulinkBlock other, int outPort, int inPort) voidunlinkFrom(SimulinkBlock other, int outPort) voidunlinkTo(SimulinkBlock other, int inPort) Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
equals, getAllTypeNamesOf, getHandle, getPath, getProperty, setProperty, toStringMethods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkModelElement
getEngine, getOwningModel, getSuperType, getType
-
Constructor Details
-
SimulinkBlock
public SimulinkBlock(SimulinkModel model, MatlabEngine engine, Double handle) throws MatlabRuntimeException CONSTRUCTORS -
SimulinkBlock
public SimulinkBlock(String path, SimulinkModel model, MatlabEngine engine) throws MatlabRuntimeException - Throws:
MatlabRuntimeException
-
SimulinkBlock
public SimulinkBlock(SimulinkModel model, MatlabEngine engine, String type) throws MatlabRuntimeException - Throws:
MatlabRuntimeException
-
-
Method Details
-
getParentPath
PARENT / CHILDREN- Throws:
EolRuntimeException
-
setParent
-
getParent
- Throws:
EolRuntimeException
-
getChildren
- Throws:
MatlabException
-
inspect
- Throws:
EolRuntimeException
-
deleteElementInModel
- Throws:
EolRuntimeException
-
setScript
TYPE-SPECIFIC METHODS- Throws:
EolRuntimeException
-
getScript
- Throws:
EolRuntimeException
-
link
- Throws:
EolRuntimeException
-
linkTo
- Throws:
EolRuntimeException
-
linkFrom
- Throws:
EolRuntimeException
-
link
- Throws:
EolRuntimeException
-
unlink
- Throws:
EolRuntimeException
-
unlinkTo
- Throws:
EolRuntimeException
-
unlinkFrom
- Throws:
EolRuntimeException
-
unlink
- Throws:
EolRuntimeException
-
manageLink
public void manageLink(SimulinkBlock other, int outPort, int inPort, boolean create) throws EolRuntimeException - Throws:
EolRuntimeException
-
getPorts
- Throws:
EolRuntimeException
-
getOutports
- Throws:
EolRuntimeException
-
getInports
- Throws:
EolRuntimeException
-