|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Strategy
Method Summary | |
---|---|
Strategy |
accept(StrategyFwd v)
|
Environment |
getEnvironment()
Get a reference to the current environment. |
void |
setEnvironment(Environment p)
Set up a new environment |
int |
visit()
Visits the current subject (found in the environment) and place its result in the environment. |
Visitable |
visit(Environment envt)
execute the strategy in the given environment (on its current subject). |
Visitable |
visit(Visitable any)
Visits the subject any by providing the environment |
Visitable |
visitLight(Visitable any)
Visits the subject any in a light way (without environment) |
Methods inherited from interface tom.library.sl.Visitable |
---|
getChildAt, getChildCount, getChildren, setChildAt, setChildren |
Method Detail |
---|
void setEnvironment(Environment p)
Environment getEnvironment()
Visitable visit(Visitable any) throws VisitFailure
any
- the subject to visit.
VisitFailure
- in case of failure.Visitable visitLight(Visitable any) throws VisitFailure
any
- the subject to visit.
VisitFailure
- in case of failure.Visitable visit(Environment envt) throws VisitFailure
envt
- the environment where execute the strategy.
VisitFailure
int visit()
Strategy accept(StrategyFwd v) throws VisitFailure
VisitFailure
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |