public final class VariableMap extends Object
Distribution.getSortedVariables()| Constructor and Description |
|---|
VariableMap(VariableContextCollection sortedVariables,
List<Variable> order,
List<Integer> times)
Initializes a new instance of the
VariableMap class. |
VariableMap(VariableContextCollection sortedVariables,
List<VariableContext> order)
Initializes a new instance of the
VariableMap class. |
VariableMap(VariableContextCollection sortedVariables,
Node[] order)
Initializes a new instance of the
VariableMap class. |
| Modifier and Type | Method and Description |
|---|---|
int |
get(int orderIndex)
Maps between the custom order and the sorted collection.
|
public VariableMap(VariableContextCollection sortedVariables, List<VariableContext> order)
VariableMap class.sortedVariables - The sorted variables.order - The custom order defined using variable contexts.NullPointerException - Raised if [sortedVariables] or [order] is null.IllegalArgumentException - Raised if the elements in [order] are not found in [sortedVariables].public VariableMap(VariableContextCollection sortedVariables, List<Variable> order, List<Integer> times)
VariableMap class.sortedVariables - The sorted variables.order - The custom order.times - The times associated with the variables in [order]. Each entry can be null.NullPointerException - Raised if [sortedVariables] or [order] is null.IllegalArgumentException - Raised if the elements in [order] are not found in [sortedVariables].public VariableMap(VariableContextCollection sortedVariables, Node[] order)
VariableMap class.sortedVariables - The sorted variables.order - The custom order, specified by nodes without times. If each node does not contain a single variable, use a different constructor.NullPointerException - Raised if [sortedVariables] or [order] is null.IllegalArgumentException - Raised if the elements in [order] are not found in [sortedVariables].Copyright © 2021. All rights reserved.