java.lang.Object
es.uam.eps.ir.relison.graph.multigraph.Weights<I,W>
 
- Type Parameters:
 
I - Type of the identifiers. 
W - Type of the different weight values. 
public class Weights<I,W>
extends java.lang.Object
Class for expressing weights
- 
Field Summary
Fields 
| Modifier and Type | 
Field | 
Description | 
private I | 
idx | 
 Identifier 
 | 
private java.util.List<W> | 
weights | 
 List of values 
 | 
 
 
- 
Constructor Summary
Constructors 
| Constructor | 
Description | 
Weights(I idx,
java.util.List<W> weights) | 
 Constructor. 
 | 
 
 
- 
Method Summary
| Modifier and Type | 
Method | 
Description | 
I | 
getIdx() | 
 Gets the identifier of the weight 
 | 
java.util.List<W> | 
getValue() | 
 Gets the different values for the weight. 
 | 
 
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
 
- 
Field Details
- 
 
- 
private final java.util.List<W> weights 
List of values
 
 
- 
Constructor Details
- 
public Weights(
I idx,
java.util.List<W> weights) 
Constructor.
- Parameters:
 
idx - Identifier 
weights - List of values. 
 
 
- 
Method Details
- 
Gets the identifier of the weight
- Returns:
 
- the identifier of the weight.
 
 
- 
public java.util.List<W> getValue()
 
Gets the different values for the weight.
- Returns:
 
- a list containing the values.