|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public Model
Base class for all models
Method Summary | |
---|---|
void |
setStrategy(Strategy[] strategy)
Sets the specified array of strategies or in case none has been defined falls back to the default strategy |
Strategy[] |
getStrategies()
Returns the array of strategies which are in use |
Strategy |
getStrategy(strategy strategy)
Returns the specified strategy |
int |
addStrategy(Strategy strategy)
Adds a strategy to the strategies array |
void |
removeStrategy(strategy strategy)
Removes the specified strategy |
Method Detail |
---|
void setStrategy(Strategy[] strategy)
strategy
-
array of strategies to set; may be null
Strategy[] getStrategies()
null
if no strategies are in useStrategy getStrategy(strategy strategy)
strategy
-
class name or array index of strategy
null
if no strategy with the specified type is in useint addStrategy(Strategy strategy)
strategy
-
strategy to add; must not be null
void removeStrategy(strategy strategy)
strategy
-
class name or array index of the strategy; must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |