Class SimulinkUtil
- java.lang.Object
-
- org.eclipse.epsilon.emc.simulink.util.SimulinkUtil
-
public class SimulinkUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FIND
static java.lang.String
FIND_FOLLOW
-
Constructor Summary
Constructors Constructor Description SimulinkUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<ISimulinkModelElement>
findBlocks(SimulinkModel model, java.lang.Integer depth)
static java.util.List<ISimulinkModelElement>
findBlocks(SimulinkModel model, SimulinkBlock block, java.lang.Integer depth)
static java.util.List<ISimulinkModelElement>
getChildren(SimulinkModel model)
static java.util.List<ISimulinkModelElement>
getChildren(SimulinkModel model, SimulinkBlock block)
SPECIFIC COLLECTIONstatic java.lang.Double
getHandle(java.lang.String path, MatlabEngine engine)
static java.lang.String
getSimpleTypeName(java.lang.String type)
static java.lang.String
getTypePathInModel(SimulinkModel model, java.lang.String type)
static java.lang.String
handleMethod(ISimulinkModelElement obj, java.lang.String methodName, java.lang.Object[] parameters)
static java.lang.String
handleMethod(SimulinkModel obj, java.lang.String methodName, java.lang.Object[] parameters)
static java.lang.String
handleMethodWithResult(ISimulinkModelElement obj, java.lang.String methodName, java.lang.Object[] parameters)
static java.lang.String
handleMethodWithResult(SimulinkModel obj, java.lang.String methodName, java.lang.Object[] parameters)
-
-
-
Field Detail
-
FIND
public static final java.lang.String FIND
- See Also:
- Constant Field Values
-
FIND_FOLLOW
public static final java.lang.String FIND_FOLLOW
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSimpleTypeName
public static java.lang.String getSimpleTypeName(java.lang.String type)
-
getTypePathInModel
public static java.lang.String getTypePathInModel(SimulinkModel model, java.lang.String type)
-
handleMethod
public static java.lang.String handleMethod(ISimulinkModelElement obj, java.lang.String methodName, java.lang.Object[] parameters)
-
handleMethod
public static java.lang.String handleMethod(SimulinkModel obj, java.lang.String methodName, java.lang.Object[] parameters)
-
handleMethodWithResult
public static java.lang.String handleMethodWithResult(ISimulinkModelElement obj, java.lang.String methodName, java.lang.Object[] parameters)
-
handleMethodWithResult
public static java.lang.String handleMethodWithResult(SimulinkModel obj, java.lang.String methodName, java.lang.Object[] parameters)
-
getHandle
public static java.lang.Double getHandle(java.lang.String path, MatlabEngine engine)
-
getChildren
public static java.util.List<ISimulinkModelElement> getChildren(SimulinkModel model, SimulinkBlock block) throws MatlabException
SPECIFIC COLLECTION- Throws:
MatlabException
-
getChildren
public static java.util.List<ISimulinkModelElement> getChildren(SimulinkModel model) throws MatlabException
- Throws:
MatlabException
-
findBlocks
public static java.util.List<ISimulinkModelElement> findBlocks(SimulinkModel model, java.lang.Integer depth) throws MatlabException
- Throws:
MatlabException
-
findBlocks
public static java.util.List<ISimulinkModelElement> findBlocks(SimulinkModel model, SimulinkBlock block, java.lang.Integer depth) throws MatlabException
- Throws:
MatlabException
-
-