|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.lcm.x2c.scilab.xcos.xcosAdapter.XcosExprs
public class XcosExprs
Utility class to handle Xcos block's "graphics.exprs" field which is used to identify X2C blocks and to store X2C specific properties.
Field Summary | |
---|---|
static java.lang.String |
x2cIdentificationString
|
Constructor Summary | |
---|---|
XcosExprs(org.scilab.modules.types.ScilabType stExprs)
Creates new XcosExprs . |
|
XcosExprs(java.lang.String[][] exprs)
Creates new XcosExprs . |
|
XcosExprs(X2cBlock block)
Creates new XcosExprs . |
Method Summary | |
---|---|
void |
addParameter(java.lang.String name,
java.lang.String value,
java.lang.String expression,
java.lang.String format)
Add a parameter at the end of the list. |
void |
clearStaticParamId()
|
boolean |
equalsParameters(java.lang.String[] maskParamNames)
Checks if expression contains the same Mask Parameter names list. |
java.lang.String |
getBlockLabel()
Get the BlockLabel of the block. |
java.lang.String |
getBlockLabelFull()
Get the full BlockLabel of the block. |
java.lang.String |
getComponentName()
Get the ComponentName of the block. |
java.lang.String[][] |
getExprs()
Get Content of the block's "graphics.exprs" field. |
java.lang.String |
getImplementation()
Get the modelIdentification of the block. |
java.lang.String |
getLibraryName()
Get the library name of the block. |
java.lang.String |
getModelIdentification()
Get the modelIdentification of the block. |
X2cBlockParameterSimple |
getParameter(java.lang.String name)
|
java.util.List<java.lang.String> |
getParameterNames()
|
int |
getParamId()
Deprecated. Use getStaticParamId() instead. |
java.lang.Integer |
getSampleTimeFactor()
|
org.scilab.modules.types.ScilabString |
getScilabTypeExprs()
Get Content of the block's "graphics.exprs" field. |
StaticParamIdExpr |
getStaticParamId()
Returns Static Parameter ID. |
boolean |
hasExactlyThisParamaeters(java.lang.String[] maskParamNames)
Deprecated. Use equalsParameters(String[]) instead. |
boolean |
hasParameter(java.lang.String name)
|
boolean |
isCoT()
|
boolean |
isFromX2cBlock()
Returns whether the exprs was from an X2C block. |
boolean |
isStaticParamId()
|
void |
setBlockLabel(java.lang.String blockLabel)
Set the BlockLabel of the block. |
void |
setBlockLabelFull(java.lang.String blockLabelFull)
Set the full BlockLabel of the block. |
void |
setComponentName(java.lang.String componentName)
Set the ComponentName of the block. |
void |
setCoT(boolean cotEnabled)
|
void |
setImplementation(java.lang.String implementation)
Set the modelIdentification of the block. |
void |
setLibName(java.lang.String libraryName)
Set the library name of the block. |
void |
setModelIdentification(java.lang.String modelIdentification)
Set the modelIdentification of the block. |
void |
setSampleTimeFactor(java.lang.Integer sampleTimeFactor)
|
void |
setStaticParamId(int paramId)
Deprecated. Use setStaticParamId(StaticParamIdExpr) instead. |
void |
setStaticParamId(StaticParamIdExpr id)
Sets new Static Parameter ID. |
java.lang.String |
toString()
|
void |
updateParameter(java.lang.String name,
java.lang.String value,
java.lang.String expression,
java.lang.String format)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String x2cIdentificationString
Constructor Detail |
---|
public XcosExprs(java.lang.String[][] exprs) throws java.lang.Exception
XcosExprs
.
exprs
- Content of the block's "graphics.exprs" field.
java.lang.Exception
public XcosExprs(X2cBlock block) throws java.lang.Exception
XcosExprs
.
block
- Block
java.lang.Exception
public XcosExprs(org.scilab.modules.types.ScilabType stExprs) throws java.lang.Exception
XcosExprs
.
stExprs
- BasicBlock.getExprs()
java.lang.Exception
Method Detail |
---|
public boolean isFromX2cBlock()
public java.lang.String getLibraryName()
public void setLibName(java.lang.String libraryName)
libraryName
- the library name of the block.public java.lang.String getComponentName()
public void setComponentName(java.lang.String componentName)
componentName
- the componentName to setpublic java.lang.String getBlockLabel()
public void setBlockLabel(java.lang.String blockLabel)
blockLabel
- the blockLabel to setpublic java.lang.String getBlockLabelFull()
public void setBlockLabelFull(java.lang.String blockLabelFull)
public java.lang.String getModelIdentification()
public void setModelIdentification(java.lang.String modelIdentification)
modelIdentification
- the modelIdentification to setpublic java.lang.String getImplementation()
public void setImplementation(java.lang.String implementation)
implementation
- the implementation to setpublic void addParameter(java.lang.String name, java.lang.String value, java.lang.String expression, java.lang.String format)
name
- value
- public X2cBlockParameterSimple getParameter(java.lang.String name)
public boolean hasParameter(java.lang.String name)
public java.util.List<java.lang.String> getParameterNames()
public void updateParameter(java.lang.String name, java.lang.String value, java.lang.String expression, java.lang.String format) throws java.lang.Exception
java.lang.Exception
public java.lang.String[][] getExprs()
public org.scilab.modules.types.ScilabString getScilabTypeExprs()
@Deprecated public boolean hasExactlyThisParamaeters(java.lang.String[] maskParamNames)
equalsParameters(String[])
instead.
maskParamNames
- Mask Parameter name list
public boolean equalsParameters(java.lang.String[] maskParamNames)
maskParamNames
- Mask Parameter name list
public void setSampleTimeFactor(java.lang.Integer sampleTimeFactor)
public java.lang.Integer getSampleTimeFactor()
public boolean isStaticParamId()
@Deprecated public int getParamId()
getStaticParamId()
instead.
public StaticParamIdExpr getStaticParamId()
public boolean isCoT()
@Deprecated public void setStaticParamId(int paramId)
setStaticParamId(StaticParamIdExpr)
instead.
paramId
- Static Parameter IDpublic void setStaticParamId(StaticParamIdExpr id)
id
- Static Parameter IDpublic void clearStaticParamId()
public void setCoT(boolean cotEnabled)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |