public class X2cBlock
extends java.lang.Object
Constructor and Description |
---|
X2cBlock(at.lcm.x2c.core.structure.Block block) |
Modifier and Type | Method and Description |
---|---|
void |
clearStaticParamId() |
void |
convertParameters() |
void |
evalStaticParamId()
Evaluates stored Static Parameter ID and sets it the the underlying
Block if evaluation was successful. |
void |
evaluateParameters()
Evaluates stored Mask Parameters and sets them to the underlying
Block if evaluation was successful. |
at.lcm.x2c.core.structure.Block |
getBlock()
Returns Block.
|
java.lang.String |
getBlockLibType()
Return the library name and the block type in the "library.type" notation
|
X2cBlockParameterSimple |
getBlockParameter(java.lang.String parameterName)
shall be build in main class
|
java.lang.String |
getComponentName() |
java.lang.String |
getComponentPrompt() |
java.lang.String |
getDescription() |
java.lang.String[] |
getExistingImplementationNames() |
java.lang.String |
getImplementation()
Returns Block Implementation name.
|
java.lang.String |
getLabel()
Returns Block label (Mask name).
|
java.lang.String |
getLibraryName() |
at.lcm.x2c.core.structure.Mask |
getMask()
Returns Block Mask.
|
java.lang.String |
getMaskName()
Deprecated.
|
java.lang.String |
getModelIdentification() |
int |
getParameterId()
Deprecated.
|
StaticParamIdExpr |
getStaticParamId() |
at.lcm.x2c.core.structure.ImplementationParameter |
getUsedControllerParameter(java.lang.String strCtrlParameter) |
java.lang.String[] |
getUsedControllerParameterNames() |
int |
getUsedImplementationIndex()
Get the index of the used implementation in the array of getExistingImplementationNames()
|
java.lang.String |
getUsedImplementationName() |
java.lang.String |
identifyBlock() |
boolean |
isCoT() |
boolean |
isCurrentModel(java.lang.String modelIdentification) |
boolean |
isPartOfModel() |
boolean |
isStaticParameterId() |
boolean |
isTimeDependent() |
void |
setBlockParameter(X2cBlockParameterSimple param)
shall be build in main class
|
void |
setCoT(boolean cotEnabled) |
void |
setLabel(java.lang.String label)
Sets Block label (Mask name).
|
void |
setModel(at.lcm.x2c.core.structure.Model model) |
void |
setModelIdentification(java.lang.String modelIdentification) |
void |
setPartOfModel(boolean isPartOfModel) |
void |
setSampleTimeFactor(java.lang.Integer sampleTimeFactor) |
void |
setStaticParamId(int id)
Deprecated.
|
void |
setStaticParamId(StaticParamIdExpr id) |
void |
setUsedImplementation(java.lang.String impl) |
java.lang.String |
toString() |
public X2cBlock(at.lcm.x2c.core.structure.Block block) throws java.lang.Exception
java.lang.Exception
public java.lang.String getLabel()
Block.getMaskName()
public void setLabel(java.lang.String label) throws java.lang.Exception
label
- Block labeljava.lang.Exception
Block.setMaskName(String)
public java.lang.String getBlockLibType()
public java.lang.String getLibraryName()
public java.lang.String getComponentName()
public java.lang.String getComponentPrompt()
public java.lang.String getDescription()
public java.lang.String getImplementation() throws java.lang.Exception
java.lang.Exception
public at.lcm.x2c.core.structure.Mask getMask()
Block.getMask()
@Deprecated public void setStaticParamId(int id) throws java.lang.Exception
java.lang.Exception
Block.setStaticParamId(int)
public void setStaticParamId(StaticParamIdExpr id)
public void clearStaticParamId()
Block.clearStaticParamId()
public boolean isStaticParameterId()
Block.isStaticParameterId()
@Deprecated public int getParameterId()
Block.getParameterId()
public StaticParamIdExpr getStaticParamId()
public void setCoT(boolean cotEnabled)
ControlBlock.setCoT(boolean)
public boolean isCoT()
ControlBlock.isCoT()
public java.lang.String[] getExistingImplementationNames()
public java.lang.String getUsedImplementationName()
public int getUsedImplementationIndex() throws java.lang.Exception
java.lang.Exception
public void setUsedImplementation(java.lang.String impl) throws java.lang.Exception
java.lang.Exception
public java.lang.String[] getUsedControllerParameterNames() throws java.lang.Exception
java.lang.Exception
public at.lcm.x2c.core.structure.ImplementationParameter getUsedControllerParameter(java.lang.String strCtrlParameter) throws java.lang.Exception
java.lang.Exception
@Deprecated public java.lang.String getMaskName()
public at.lcm.x2c.core.structure.Block getBlock()
public java.lang.String getModelIdentification()
public void setModelIdentification(java.lang.String modelIdentification)
public boolean isCurrentModel(java.lang.String modelIdentification)
public void convertParameters() throws java.lang.Exception
java.lang.Exception
public boolean isPartOfModel()
public void setPartOfModel(boolean isPartOfModel)
isPartOfModel
- the isPartOfModel to setpublic void setModel(at.lcm.x2c.core.structure.Model model)
public void setBlockParameter(X2cBlockParameterSimple param)
param
- public X2cBlockParameterSimple getBlockParameter(java.lang.String parameterName) throws java.lang.Exception
parameterName
- java.lang.Exception
public void evaluateParameters()
Block
if evaluation was successful.public void evalStaticParamId() throws EvaluationException
Block
if evaluation was successful.EvaluationException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String identifyBlock()
public boolean isTimeDependent()
public void setSampleTimeFactor(java.lang.Integer sampleTimeFactor) throws java.lang.Exception
java.lang.Exception
Copyright 2019 LCM. All rights reserved.