zeus.actors.rtn.util
Class StrategyEvaluator

java.lang.Object
  extended byzeus.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

Field Summary
protected  AgentContext context
           
protected  StrategyEvaluatorList evaluators
           
static int FAIL
           
protected  java.util.Vector goals
           
protected  boolean isActive
           
static int MESSAGE
           
static int OK
           
protected  ProtocolDbResult protocolInfo
           
static int WAIT
           
 
Constructor Summary
StrategyEvaluator()
           
 
Method Summary
abstract  int evaluateFirst(java.util.Vector goals, ProtocolDbResult info)
           
abstract  int evaluateNext(DelegationStruct ds)
           
protected  boolean getBooleanParam(java.lang.String param, boolean default_value)
           
protected  double getDoubleParam(java.lang.String param, double default_value)
           
 java.util.Vector getGoals()
           
protected  int getIntParam(java.lang.String param, int default_value)
           
protected  java.lang.String getParam(java.lang.String param, java.lang.String default_value)
           
 ProtocolDbResult getProtocolInfo()
           
 boolean isActive()
           
 void set(AgentContext context)
           
 void set(StrategyEvaluatorList evaluators)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

StrategyEvaluator

public StrategyEvaluator()
Method Detail

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.