public interface FeatureInfo extends ModelEntity
Modifier and Type | Method and Description |
---|---|
FeatureInfo |
clearLocks()
Clear all user-defined expressions (locked expressions) for the parent
PhysicsFeature . |
java.lang.String[][] |
getInfoTable(java.lang.String id)
Returns a table with information about all variables, weak equations,
constraints, and shapes that the parent contributes with.
|
java.lang.String[][] |
getInfoTable(java.lang.String id,
java.lang.String... options)
Returns a table with information about all variables, weak equations,
constraints, and shapes that the parent contributes with.
|
java.lang.String[] |
getStringArray(java.lang.String name)
Returns the user-defined expressions for the first definition.
|
java.lang.String[] |
getStringArray(java.lang.String name,
int sdim)
Returns the user-defined expressions for the given definition.
|
boolean |
isLocked(java.lang.String name)
Check if the given identifier name (e.g.
|
java.lang.String[] |
lock(java.lang.String arg0)
Deprecated.
@deprecated Use
getStringArray(String) instead. |
java.lang.String[] |
lock(java.lang.String arg0,
int arg1)
Deprecated.
@deprecated Use
getStringArray(String, int) instead. |
FeatureInfo |
lock(java.lang.String arg0,
int arg1,
java.lang.String[] arg2)
Deprecated.
@deprecated Use
set(String, int, String[]) instead. |
FeatureInfo |
lock(java.lang.String arg0,
java.lang.String[] arg1)
Deprecated.
@deprecated Use
set(String, String[]) instead. |
java.lang.String |
removeLock(java.lang.String name)
Removes the lock of the given identifier name (e.g.
|
FeatureInfo |
set(java.lang.String name,
int sdim,
java.lang.String[] expr)
Sets the user-defined expressions for the given definition.
|
FeatureInfo |
set(java.lang.String name,
java.lang.String[] expr)
Sets the user-defined expressions for first definition.
|
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
FeatureInfo clearLocks()
PhysicsFeature
.java.lang.String[][] getInfoTable(java.lang.String id)
id
- The type of table to return. Can be any of the following stringsExpression
Returns information about
variables.Shape
Returns information about
shape declarations.Weak
Returns information
about weak equations.Constraint
Returns
information about constraints.java.lang.String[][] getInfoTable(java.lang.String id, java.lang.String... options)
id
- The type of table to return. Can be any of the following stringsExpression
Returns information about
variables.Shape
Returns information about
shape declarations.Weak
Returns information
about weak equations.Constraint
Returns
information about constraints.options
- Extra options that specifies what to include in the table. The options
can be any of the following stringsrecursive
Collects information from the parent and
its descendants. The default is to only include info from the
parent.all
Returns all available columns of
information. Without this option the columns returned are the same
as the ones displayed in the Equation view.java.lang.String[] getStringArray(java.lang.String name)
name
- The identifier name (e.g. variable name).java.lang.String[] getStringArray(java.lang.String name, int sdim)
name
- The identifier name (e.g. variable name).sdim
- The occurrence of the definition, which can be larger than zero for
variables that have more than one definition on different geometric
entities for instance.boolean isLocked(java.lang.String name)
name
- The identifier name (e.g. variable name).true
if locked.@Deprecated java.lang.String[] lock(java.lang.String arg0)
getStringArray(String)
instead.@Deprecated FeatureInfo lock(java.lang.String arg0, java.lang.String[] arg1)
set(String, String[])
instead.@Deprecated java.lang.String[] lock(java.lang.String arg0, int arg1)
getStringArray(String, int)
instead.@Deprecated FeatureInfo lock(java.lang.String arg0, int arg1, java.lang.String[] arg2)
set(String, int, String[])
instead.java.lang.String removeLock(java.lang.String name)
PhysicsFeature
.name
- The identifier name (e.g. variable name).null
.FeatureInfo set(java.lang.String name, java.lang.String[] expr)
name
- The identifier name (e.g. variable name).expr
- The user-defined values as a string array. Use two elements for
constraints, one for the constraint and one for the constraint force.FeatureInfo set(java.lang.String name, int sdim, java.lang.String[] expr)
name
- The identifier name (e.g. variable name).sdim
- The occurrence of the definition, which can be larger than zero for
variables that have more than one definition on different geometric
entities for instance.expr
- The user-defined values as a string array. Use two elements for
constraints, one for the constraint and one for the constraint force.