Class MultiEdgeWeights
java.lang.Object
es.uam.eps.ir.relison.index.IdxValue<java.util.List<java.lang.Double>>
es.uam.eps.ir.relison.graph.multigraph.edges.MultiEdgeWeights
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Comparable<IdxValue<java.util.List<java.lang.Double>>>
public class MultiEdgeWeights extends IdxValue<java.util.List<java.lang.Double>>
Class that represents the weight of the edges. Each type is represented as
an integer. Value 1.0 is considered a default valid value, and NaN as a default
invalid value. Every other value has the interpretation the user wants to give
it.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MultiEdgeWeights(int idx)ConstructorMultiEdgeWeights(int idx, java.util.List<java.lang.Double> values)Constructor -
Method Summary
Modifier and Type Method Description static doublegetDefaultValue()Gets the default value for a weight.static java.util.List<java.lang.Double>getDefaultValue(int length)Default valid type value.static java.util.List<java.lang.Double>getErrorType()Default value for the error type.
-
Constructor Details
-
MultiEdgeWeights
public MultiEdgeWeights(int idx, java.util.List<java.lang.Double> values)Constructor- Parameters:
idx- identifiervalues- list of edge weights.
-
MultiEdgeWeights
public MultiEdgeWeights(int idx)Constructor- Parameters:
idx- identifier.
-
-
Method Details
-
getErrorType
public static java.util.List<java.lang.Double> getErrorType()Default value for the error type.- Returns:
- The default value for the error type.
-
getDefaultValue
public static java.util.List<java.lang.Double> getDefaultValue(int length)Default valid type value.- Parameters:
length- the number of weights to return.- Returns:
- The default valid type value.
-
getDefaultValue
public static double getDefaultValue()Gets the default value for a weight.- Returns:
- the default value for a weight.
-