public interface SolutionInfo extends ModelEntity
Modifier and Type | Method and Description |
---|---|
int[] |
getIndices(int level,
int[] levels)
Returns the one based indices available for a given level.
|
int[] |
getIndicies(int arg0,
int[] arg1)
Deprecated.
Use
getIndices(int, int[]) instead. |
int |
getISol(int outersolnum,
double t)
Returns the index-zero based solution object number for the time value
t . |
int[] |
getISol(int outersolnum,
int innersolnum)
Returns the index-zero based solution object number and the index-zero
based solution number within for the outer and inner solution numbers
(outersolnum,innersolnum).
|
java.lang.String |
getLevelDescription(int level)
Returns description of the looplevel level.
|
java.lang.String[] |
getLevelNames()
Get the names of the different levels.
|
int |
getLevels()
Get the number of levels in this solution.
|
int |
getMaxInner(int[] outersolnum)
Returns the maximum number of inner solutions for the given outer
solution numbers.
|
int |
getMaxLevels()
The maximal number of levels any solution can have.
|
java.lang.String |
getName(int level)
Get the parameter name for the loop level.
|
int[] |
getOuterSolnum()
Returns the one based indices for the outer solutions.
|
java.lang.String[][] |
getPNames(int[][] solnums)
Retrieves parameter names for the parameters associated with the
solutions specified by one-based solnums.
|
java.lang.String[] |
getPNamesOuter()
Get the subset of parameter names that are looped by an outer
parametric sweep.
|
java.lang.String[] |
getPUnitsOuter()
Get the units for the subset of parameters that are looped by an outer
parametric sweep.
|
double[][] |
getPvals(int[][] solnums)
Retrieves the real part of the parameter values for the parameters
associated with the solutions specified by one-based solnums.
|
double[][] |
getPvalsImag(int[][] solnums)
Retrieves the imaginary part of the parameter values for the
parameters associated with the solutions specified by one-based
solnums.
|
java.lang.String |
getSol(int outersolnum)
Returns the solver sequence tag for the index one based outer solution
number outersolnum.
|
java.lang.String[] |
getSolDescriptions(int level,
int[] levels,
boolean paramInclusion,
boolean indexInclusion)
Get the descriptions for the solutions in this level, one string for
each solution.
|
int[] |
getSolnum(int outersolnum,
boolean strict)
Returns the one based inner solution numbers for the outer solution
number outersolnum.
|
int[][] |
getSolnums(java.lang.String[] pnames)
Retrieves a list of one-based tuples (outersolnum, innersolnum) for
all solutions that match all pnames.
|
java.lang.String |
getSolverSequence(int solnums)
Returns the SolverSequence associated with the given one-based
outersolnum.
|
java.lang.String[] |
getSplitLevelDescriptions()
Get the description of the different levels, split into an array for
the case when there is more than one.
|
java.lang.String[] |
getSplitLevelNames()
Get the names of the different levels, split into an array for the
case when there is more than one.
|
java.lang.String[] |
getSplitLevelUnits()
Get the units of the different levels, split into an array for the
case when there is more than one.
|
java.lang.String[] |
getSplitName(int level)
Returns all parameter names for the level.
|
java.lang.String[] |
getSplitUnit(int level)
Returns all parameter units for the level.
|
double[] |
getUniquePvals(java.lang.String pname,
int[][] solnums)
Retrieves the real part of all parameter values (without duplicates)
for the parameter pname in the solutions associated with solnums.
|
double[] |
getUniquePvalsImag(java.lang.String pname,
int[][] solnums)
Retrieves the imaginary part of all imaginary parameter values
(without duplicates) for the parameter pname in the solutions
associated with solnums.
|
java.lang.String |
getUnit(java.lang.String name)
Get the unit of the given parameter.
|
java.lang.String[][] |
getUnits(int[][] solnums)
Retrieves units for the parameters associated with the solutions
specified by one-based solnums.
|
double[][] |
getVals(int level,
int[] levels)
Returns the parameter values for a level.
|
double[][] |
getValsImag(int level,
int[] levels)
Returns the imaginary part of the parameter values for a level.
|
boolean |
isStructured()
Returns
true unless the underlying solution
object/objects has a parameter variation that depends on the solution
process itself. |
boolean |
isValid()
Returns
true if the underlying data is consistent with
this info object. |
boolean |
isValid(boolean checkNative)
Returns
true if the underlying data is consistent with
this info object. |
int[][] |
mapToLevel(int[] outersolnum,
int[] innersolnum,
boolean compressedOutput)
Returns the level representation of index-one based outer and inner
solution numbers.
|
int[][] |
mapToLevel(int[] outersolnum,
int[] innersolnum,
boolean compressedOutput,
boolean checkNative)
Returns the level representation of index-one based outer and inner
solution numbers.
|
int[][] |
mapToSolnum(int[][] levelSetting,
boolean expandInput)
Returns the solnum representation of a level setting.
|
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
int getISol(int outersolnum, double t)
t
. The returned solution number is normally the same (0)
for all t
, but can vary for so called multi-solutions
(time-dependent adaption or for automatic remeshing).outersolnum
- Outer solution number.t
- Time value.int[] getISol(int outersolnum, int innersolnum)
outersolnum
- Outer solution number.innersolnum
- Inner solution number.int[] getIndices(int level, int[] levels)
level
- Zero indexed loop level.levels
- One indexed setting for other loop levels. When the format is
structured the settings do not matter and this parameter can be null.
When format is unstructured the array should have the same length as
getLevels().@Deprecated int[] getIndicies(int arg0, int[] arg1)
getIndices(int, int[])
instead.java.lang.String getLevelDescription(int level)
level
- Zero indexed loop level.java.lang.String[] getLevelNames()
p1, p2
'.int getLevels()
level
< getLevels()
≤ getMaxLevels()
.int getMaxInner(int[] outersolnum)
null
, the maximum is
taken over all outer solutions.outersolnum
- Outer solution numbers.int getMaxLevels()
level
<
getLevels()
≤ getMaxLevels()
.java.lang.String getName(int level)
foo, bar
.level
- Zero indexed loop level.int[] getOuterSolnum()
java.lang.String[][] getPNames(int[][] solnums)
solnums
- Array of index one based outer and inner solnums.java.lang.String[] getPNamesOuter()
java.lang.String[] getPUnitsOuter()
double[][] getPvals(int[][] solnums)
solnums
- Array of index one based outer and inner solnums.double[][] getPvalsImag(int[][] solnums)
solnums
- Array of index one based outer and inner solnums.java.lang.String getSol(int outersolnum)
null
is returned.outersolnum
- Index one based outer solution number.null
.java.lang.String[] getSolDescriptions(int level, int[] levels, boolean paramInclusion, boolean indexInclusion)
level
- Zero indexed loop level.levels
- One indexed setting for other loop levels. When the format is
structured the settings do not matter and this parameter can be null.
When format is unstructured the array should have the same length as
getLevels().paramInclusion
- Include the parameter in the description.indexInclusion
- Include the index number in the description.int[] getSolnum(int outersolnum, boolean strict)
outersolnum
- Outer solution number.strict
- Specifies behaviour when outersolnum does not match.int[][] getSolnums(java.lang.String[] pnames)
pnames
- Parameter names that must be matched.java.lang.String getSolverSequence(int solnums)
solnums
- Index one based outer solution number.java.lang.String[] getSplitLevelDescriptions()
java.lang.String[] getSplitLevelNames()
java.lang.String[] getSplitLevelUnits()
java.lang.String[] getSplitName(int level)
level
- Zero indexed loop level.java.lang.String[] getSplitUnit(int level)
level
- Zero indexed loop level.double[] getUniquePvals(java.lang.String pname, int[][] solnums)
pname
- Parameter name.solnums
- Array of index one based outer and inner solnums.double[] getUniquePvalsImag(java.lang.String pname, int[][] solnums)
pname
- Parameter name.solnums
- Array of index one based outer and inner solnums.java.lang.String getUnit(java.lang.String name)
name
- Name of parameter.java.lang.String[][] getUnits(int[][] solnums)
solnums
- Array of outer and inner solnums.double[][] getVals(int level, int[] levels)
level
- Zero indexed loop level.levels
- One indexed setting for other loop levels. When the format is
structured the settings do not matter and this parameter can be null.
When format is unstructured the array should have the same length as
getLevels().double[][] getValsImag(int level, int[] levels)
level
- Zero indexed loop level.levels
- One indexed setting for other loop levels. When the format is
structured the settings do not matter and this parameter can be null.
When format is unstructured the array should have the same length as
getLevels().boolean isStructured()
true
unless the underlying solution
object/objects has a parameter variation that depends on the solution
process itself. Examples are time-dependent simulations where the
output is determined by the steps taken by the solver or eigenvalue
simulations.boolean isValid()
true
if the underlying data is consistent with
this info object.boolean isValid(boolean checkNative)
true
if the underlying data is consistent with
this info object.checkNative
- If false, the native object is not checked for consistency.int[][] mapToLevel(int[] outersolnum, int[] innersolnum, boolean compressedOutput)
outersolnum
- Outer solution numbers.innersolnum
- Inner solution numbers.compressedOutput
- When false
, the columns represent the tuples, which is
the most general format. When true
, the level settings
are made unique on each level. NOTE: When true
and if
the compressed representation does not match the input, an array with
the right number of rows but each with zero length will be returned.int[][] mapToLevel(int[] outersolnum, int[] innersolnum, boolean compressedOutput, boolean checkNative)
outersolnum
- Outer solution numbers.innersolnum
- Inner solution numbers.compressedOutput
- When false
, the columns represent the tuples, which is
the most general format. When true
, the level settings
are made unique on each level. NOTE: When true
and if
the compressed representation does not match the input, an array with
the right number of rows but each with zero length will be returned.checkNative
- If false, the native object is not checked for consistency.int[][] mapToSolnum(int[][] levelSetting, boolean expandInput)
levelSetting
- Level settings matrix.expandInput
- Controls format of levelSetting and of output.