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, HANDLE
Fields 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 TypeMethodDescriptionboolean
protected String
PARENT / CHILDRENgetPorts()
inspect()
void
link
(SimulinkBlock other) void
link
(SimulinkBlock other, int outPort, int inPort) void
linkFrom
(SimulinkBlock other, int outPort) void
linkTo
(SimulinkBlock other, int inPort) void
manageLink
(SimulinkBlock other, int outPort, int inPort, boolean create) void
setParent
(SimulinkBlock parent) void
TYPE-SPECIFIC METHODSvoid
unlink
(SimulinkBlock other) void
unlink
(SimulinkBlock other, int outPort, int inPort) void
unlinkFrom
(SimulinkBlock other, int outPort) void
unlinkTo
(SimulinkBlock other, int inPort) Methods inherited from class org.eclipse.epsilon.emc.simulink.model.element.SimulinkElement
equals, getAllTypeNamesOf, getHandle, getPath, getProperty, setProperty, toString
Methods 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
-