edu.ntnu.ecosim.agents.serviceproviders
Class Strategy

java.lang.Object
  extended by edu.ntnu.ecosim.agents.serviceproviders.Strategy

public class Strategy
extends java.lang.Object

The Class Strategy represents the companies strategy.

Author:
martin.andreas.borke

Field Summary
static int INNOREACTIVE
           
static int INNOVATIVE
           
static int NONE
           
static int REACTIVE
           
 
Constructor Summary
protected Strategy(ServiceProvider sp, Memory mem, java.lang.String strat, int ecofl, int innostr, int innotype)
          Constructor for the strategy
 
Method Summary
protected  void applyStrategy()
          Method used each time the strategy module shall react
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final int NONE
See Also:
Constant Field Values

INNOVATIVE

public static final int INNOVATIVE
See Also:
Constant Field Values

REACTIVE

public static final int REACTIVE
See Also:
Constant Field Values

INNOREACTIVE

public static final int INNOREACTIVE
See Also:
Constant Field Values
Constructor Detail

Strategy

protected Strategy(ServiceProvider sp,
                   Memory mem,
                   java.lang.String strat,
                   int ecofl,
                   int innostr,
                   int innotype)
            throws NoSuchStrategyException
Constructor for the strategy

Parameters:
sp - the service provider the strategy belongs to
mem - the memory of the service provider
strat - the strategy to use
ecofl - the economic flexibility of the provider
innostr - the innovative strength of the provider
innotype - the innovation type this provider develops
Throws:
NoSuchStrategyException - if the strategy string is not recognized
Method Detail

applyStrategy

protected void applyStrategy()
Method used each time the strategy module shall react