de.cesr.lara.components.decision.impl
Class LDecisionConfiguration

java.lang.Object
  extended by de.cesr.lara.components.decision.impl.LDecisionConfiguration
All Implemented Interfaces:
LaraDecisionConfiguration

public class LDecisionConfiguration
extends Object
implements LaraDecisionConfiguration

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

preferences

protected Collection<Class<? extends LaraPreference>> preferences
preferenceWeights XXX: why not store hash map (goal, value) of preferenceWeights instead of preferenceWeights? cause preferenceWeights differ from agent to agent, but preferenceWeights are reusable


idCounter

public static int idCounter
The default id string

Constructor Detail

LDecisionConfiguration

public LDecisionConfiguration()
Assigns the default id String.


LDecisionConfiguration

public LDecisionConfiguration(String id)
Parameters:
id -
deliberativeChoiceComp - the mechanism used to fetch best BOs.
Method Detail

getId

public String getId()
Specified by:
getId in interface LaraDecisionConfiguration
Returns:
the decision's id
See Also:
LaraDecisionConfiguration.getId()

getPreferences

public Collection<Class<? extends LaraPreference>> getPreferences()
Description copied from interface: LaraDecisionConfiguration
Provides the preferences that are relevant for this decision

Specified by:
getPreferences in interface LaraDecisionConfiguration
Returns:
relevant preferences

setPreferences

public void setPreferences(Collection<Class<? extends LaraPreference>> preferences)
Description copied from interface: LaraDecisionConfiguration
Set the preferences that are relevant for this decision

Specified by:
setPreferences in interface LaraDecisionConfiguration

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()