|
|||||||||
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()
|
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()
|
java.lang.Integer |
getSampleTimeFactor()
|
org.scilab.modules.types.ScilabString |
getScilabTypeExprs()
Get Content of the block's "graphics.exprs" field. |
boolean |
hasExactlyThisParamaeters(java.lang.String[] maskParamNames)
Checks whether the exprs has all parameters form maskPaqramNames in the same oder and no additional parameters. |
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)
|
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()
public boolean hasExactlyThisParamaeters(java.lang.String[] maskParamNames)
maskParamNames
- Mask Parameter names
public void setSampleTimeFactor(java.lang.Integer sampleTimeFactor)
public java.lang.Integer getSampleTimeFactor()
public boolean isStaticParamId()
public int getParamId()
public boolean isCoT()
public void setStaticParamId(int paramId)
public 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 |