edu.ntnu.ecosim.agents.serviceproviders
Class Strategy
java.lang.Object
edu.ntnu.ecosim.agents.serviceproviders.Strategy
public class Strategy
- extends java.lang.Object
The Class Strategy represents the companies strategy.
- Author:
- martin.andreas.borke
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 |
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
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 tomem
- the memory of the service providerstrat
- the strategy to useecofl
- the economic flexibility of the providerinnostr
- the innovative strength of the providerinnotype
- the innovation type this provider develops
- Throws:
NoSuchStrategyException
- if the strategy string is not recognized
applyStrategy
protected void applyStrategy()
- Method used each time the strategy module shall react