Class implementing product weights. More...
Public Member Functions | |
| ProductWeights (ArrayList< SingletonWeightComparable< Integer > > weightList) | |
| Constructor for product weights from a list of SingletonWeightComparable indexed by integers indicating the coordinate. | |
| ProductWeights () | |
| Default constructor. | |
| String | toString () |
| Creates a formatted output of the product weights ordered w.r.t. | |
| String | toLatNetBuilder () |
| Creates a string formatted for passing it to LatNet Builder. | |
| Public Member Functions inherited from umontreal.ssj.latnetbuilder.weights.WeightsComparable< Integer > | |
| WeightsComparable (List< SingletonWeightComparable< T > > w) | |
| Constructs weights from a list of SingletonWeightsComparable. | |
| ArrayList< SingletonWeightComparable< T > > | getComparableWeights () |
| Returns the current comparable weights. | |
| void | add (SingletonWeightComparable< T > singletonWeight) |
| Adds a new comparable weight to the list. | |
| void | sort () |
| Sorts the weights w.r.t. | |
Package Functions | |
| String | printBody () |
| Sorts the weights and creates a rudimentary string containing the product weights separated by commas. | |
Class implementing product weights.
Each weight is assigned to one coordinate, i.e., \(\gamma_{\mathfrak u} = \prod_{j\in\mathfrak u}\gamma_j\). Thus, the index of each 'SingletonWeightComparable' is given by an integer (starting at 0 for the first coordinate) and corresponds to one specific coordinate.
Definition at line 16 of file ProductWeights.java.
| umontreal.ssj.latnetbuilder.weights.ProductWeights.ProductWeights | ( | ArrayList< SingletonWeightComparable< Integer > > | weightList | ) |
Constructor for product weights from a list of SingletonWeightComparable indexed by integers indicating the coordinate.
| weightList | list of comparable weights to be set as the product weights. |
Definition at line 25 of file ProductWeights.java.
| umontreal.ssj.latnetbuilder.weights.ProductWeights.ProductWeights | ( | ) |
Default constructor.
Definition at line 32 of file ProductWeights.java.
|
package |
Sorts the weights and creates a rudimentary string containing the product weights separated by commas.
Missing weights (i.e. a weight for a coordinates which has not been set and lies between two coordinates, whose weights are specified) are filled with 'defaultWeight'.
Definition at line 44 of file ProductWeights.java.
| String umontreal.ssj.latnetbuilder.weights.ProductWeights.toLatNetBuilder | ( | ) |
Creates a string formatted for passing it to LatNet Builder.
Definition at line 86 of file ProductWeights.java.
| String umontreal.ssj.latnetbuilder.weights.ProductWeights.toString | ( | ) |
Creates a formatted output of the product weights ordered w.r.t.
to the coordinate they are assigned to. Missing weights (i.e. a weight for a coordinates which has not been set and lies between two coordinates, whose weights are specified) are filled with 'defaultWeight'.
Definition at line 72 of file ProductWeights.java.