zeus.actors.rtn.util
Class StrategyEvaluator
java.lang.Object
zeus.actors.rtn.util.StrategyEvaluator
- Direct Known Subclasses:
- DefaultInitiatorEvaluator, DefaultRespondentEvaluator, LinearInitiatorEvaluator, LinearRespondentEvaluator, SimpleInitiatorEvaluator, SimpleRespondentEvaluator
- public abstract class StrategyEvaluator
- extends java.lang.Object
This class defines a negotation strategy, i.e. how the bidding strategy
changes with time and or bids received. Following initialisation,
negotiation proceeds via, first a call to the evaluateFirst
methods, the followed by zero or more calls to the evaluateNext
method. These two call return the following message types:
OK | the negotiation has
terminated successfully |
FAIL | the negotaition failed |
WAIT | wait until some timeout
period |
MESSAGE | a message needs to be sent
|
- See Also:
StrategyEvaluatorList
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OK
public static final int OK
- See Also:
- Constant Field Values
FAIL
public static final int FAIL
- See Also:
- Constant Field Values
WAIT
public static final int WAIT
- See Also:
- Constant Field Values
MESSAGE
public static final int MESSAGE
- See Also:
- Constant Field Values
context
protected AgentContext context
evaluators
protected StrategyEvaluatorList evaluators
isActive
protected boolean isActive
goals
protected java.util.Vector goals
protocolInfo
protected ProtocolDbResult protocolInfo
StrategyEvaluator
public StrategyEvaluator()
set
public void set(AgentContext context)
set
public void set(StrategyEvaluatorList evaluators)
isActive
public boolean isActive()
getGoals
public java.util.Vector getGoals()
getProtocolInfo
public ProtocolDbResult getProtocolInfo()
evaluateFirst
public abstract int evaluateFirst(java.util.Vector goals,
ProtocolDbResult info)
evaluateNext
public abstract int evaluateNext(DelegationStruct ds)
getParam
protected java.lang.String getParam(java.lang.String param,
java.lang.String default_value)
getIntParam
protected int getIntParam(java.lang.String param,
int default_value)
getDoubleParam
protected double getDoubleParam(java.lang.String param,
double default_value)
getBooleanParam
protected boolean getBooleanParam(java.lang.String param,
boolean default_value)
Copyright © 2000-2003 BT Exact Technologies. All Rights Reserved.