public class GenericSolutionAttribute<S extends Solution<?>,V> extends Object implements SolutionAttribute<S,V>
SolutionAttribute classes. By default, the identifier
of a SolutionAttribute is the class name, but it can be set to a different value
when constructing an instance.| Constructor and Description |
|---|
GenericSolutionAttribute()
Constructor
|
GenericSolutionAttribute(Object id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
V |
getAttribute(S solution) |
Object |
getAttributeIdentifier() |
void |
setAttribute(S solution,
V value) |
public GenericSolutionAttribute()
public GenericSolutionAttribute(Object id)
id - Attribute identifierpublic V getAttribute(S solution)
getAttribute in interface SolutionAttribute<S extends Solution<?>,V>public void setAttribute(S solution, V value)
setAttribute in interface SolutionAttribute<S extends Solution<?>,V>public Object getAttributeIdentifier()
getAttributeIdentifier in interface SolutionAttribute<S extends Solution<?>,V>Copyright © 2017. All rights reserved.