|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.cesr.lara.components.decision.impl.LDecisionConfiguration
public class LDecisionConfiguration
creates instance of decision for given set of preferenceWeights and deliberativeChoiceComp TODO make immutable (SH) TODO consider id field to make the builder identifiable - to be set in constructor like other fields (SH) sorry - needed these features instantly (SH) > not possible to make static since multiple instances with different goal-definitions are required! (SH)
| Field Summary | |
|---|---|
static int |
idCounter
The default id string |
protected Collection<Class<? extends LaraPreference>> |
preferences
preferenceWeights XXX: why not store hash map (goal, value) of preferenceWeights instead of preferenceWeights? |
| Constructor Summary | |
|---|---|
LDecisionConfiguration()
Assigns the default id String. |
|
LDecisionConfiguration(String id)
|
|
| Method Summary | |
|---|---|
String |
getId()
|
Collection<Class<? extends LaraPreference>> |
getPreferences()
Provides the preferences that are relevant for this decision |
void |
setPreferences(Collection<Class<? extends LaraPreference>> preferences)
Set the preferences that are relevant for this decision |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Collection<Class<? extends LaraPreference>> preferences
public static int idCounter
| Constructor Detail |
|---|
public LDecisionConfiguration()
public LDecisionConfiguration(String id)
id - deliberativeChoiceComp - the mechanism used to fetch best BOs.| Method Detail |
|---|
public String getId()
getId in interface LaraDecisionConfigurationLaraDecisionConfiguration.getId()public Collection<Class<? extends LaraPreference>> getPreferences()
LaraDecisionConfiguration
getPreferences in interface LaraDecisionConfigurationpublic void setPreferences(Collection<Class<? extends LaraPreference>> preferences)
LaraDecisionConfiguration
setPreferences in interface LaraDecisionConfigurationpublic String toString()
toString in class ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||