Class GenericSolutionAttribute<S extends Solution<?>,V>
java.lang.Object
org.uma.jmetal.util.solutionattribute.impl.GenericSolutionAttribute<S,V>
- All Implemented Interfaces:
Serializable,SolutionAttribute<S,V>
- Direct Known Subclasses:
DirScore,DistanceToSolutionListAttribute,Fitness,HypervolumeContributionAttribute,LocationAttribute,NumberOfViolatedConstraints,OverallConstraintViolation,PreferenceDistance,SolutionTextRepresentation,SpatialSpreadDeviation
public class GenericSolutionAttribute<S extends Solution<?>,V>
extends Object
implements SolutionAttribute<S,V>
Generic class for implementing
SolutionAttribute classes. By default, the identifier
of a SolutionAttribute is the class object, but it can be set to a different value
when constructing an instance.- Author:
- Antonio J. Nebro
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(S solution) voidsetAttribute(S solution, V value)
-
Constructor Details
-
GenericSolutionAttribute
public GenericSolutionAttribute()Constructor -
GenericSolutionAttribute
-
-
Method Details
-
getAttribute
- Specified by:
getAttributein interfaceSolutionAttribute<S extends Solution<?>,V>
-
setAttribute
- Specified by:
setAttributein interfaceSolutionAttribute<S extends Solution<?>,V>
-
getAttributeIdentifier
- Specified by:
getAttributeIdentifierin interfaceSolutionAttribute<S extends Solution<?>,V>
-