|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
s
, that
applies this strategy s
to all children.AllSeq(v).visit(T(t1,...- AllSeq(Strategy) -
Constructor for class tom.library.sl.AllSeq
-
- ARG -
Static variable in class tom.library.sl.All
-
- ARG -
Static variable in class tom.library.sl.AllSeq
-
- ARG -
Static variable in class tom.library.sl.DeRef
-
- ARG -
Static variable in class tom.library.sl.Not
-
- ARG -
Static variable in class tom.library.sl.Omega
-
- ARG -
Static variable in class tom.library.sl.OmegaU
-
- ARG -
Static variable in class tom.library.sl.One
-
- ARG -
Static variable in class tom.library.sl.OneId
-
- ARG -
Static variable in class tom.library.sl.reflective.StrategyFwd
-
Choice(v1,v2) = v1
if v1 succeeds
Choice(v1,v2) = v2
if v1 fails
Visitor combinator with two visitor arguments, that tries to
apply the first visitor and if it fails tries the other
(left-biased choice).ChoiceId(v1,v2) = v1
if v1 is not Identity
ChoiceId(v1,v2) = v2
otherwise
Basic visitor combinator with two visitor arguments, that applies
these visitors one after the other (sequential composition), if the first
one is not the identity.x.accept(Fail)
always raises a VisitFailure exception.x.accept(Identity) = x
Basic visitor combinator without arguments that does nothing.MuVar(v)
always raises a VisitFailure exception.Not(v)
succeeds if and only if v
fails.Omega(i,v)
Basic visitor combinator which applies v the i-th subterm
0-th subterm is the term itself
1-th subterm corresponds to the first subterm
...OmegaU(v)
Basic visitor combinator which applies Omega(i,v) with
i in [1..arity] with a uniform probability
i.e. with probability 1/getChildCount
s
, that
applies this strategy s
to exactly one child.T(t1,...- OneId(Strategy) -
Constructor for class tom.library.sl.OneId
-
Pselect(p,q,v1,v2) = v1
with probability p/q
Pselect(p,q,v1,v2) = v2
with probability 1-(p/q)
Visitor combinator with a probability and two visitor arguments,
that select a visitor according to the probability p/q
The strategy fails if the selected strategy fails
Note that any side-effects of v1 are not undone when it fails.Sequence(v1,v2)[t] = v2[v1[t]]
if v1 succeeds
fails
otherwise
Basic visitor combinator with two visitor arguments, that applies
these visitors one after the other (sequential composition).x.fire(SequenceId (v1,v2)) = x.fire(v1) ; x.fire(v2) if x.fire(v1)!- SequenceId(Strategy, Strategy) -
Constructor for class tom.library.sl.SequenceId
-
- setChildAt(int, Visitable) -
Method in class tom.library.sl.AbstractStrategy
-
- setChildAt(int, Visitable) -
Method in interface tom.library.sl.Visitable
-
- setChildren(Visitable[]) -
Method in class tom.library.sl.AbstractStrategy
-
- setChildren(Visitable[]) -
Method in interface tom.library.sl.Visitable
- Replaces all children of any visitable at once, and returns this
visitable.
- setEnvironment(Environment) -
Method in class tom.library.sl.AbstractStrategy
-
- setEnvironment(Environment) -
Method in interface tom.library.sl.Strategy
- Set up a new environment
- setInstance(Strategy) -
Method in class tom.library.sl.MuVar
-
- setName(String) -
Method in class tom.library.sl.MuVar
-
- setRoot(Visitable) -
Method in class tom.library.sl.AbstractStrategy
-
- setRoot(Visitable) -
Method in class tom.library.sl.Environment
- set the current root
- setStatus(int) -
Method in class tom.library.sl.Environment
-
- setSubject(Visitable) -
Method in class tom.library.sl.AbstractStrategy
-
- setSubject(Visitable) -
Method in class tom.library.sl.Environment
- set the current term
- status -
Variable in class tom.library.sl.Environment
-
- Strategy - Interface in tom.library.sl
-
- StrategyFwd - Class in tom.library.sl.reflective
-
- StrategyFwd(Strategy) -
Constructor for class tom.library.sl.reflective.StrategyFwd
-
- sub(Path) -
Method in interface tom.library.sl.Path
- Computes the path from the target of this to the target of the parameter p.
- sub(Path) -
Method in class tom.library.sl.Position
-
- subterm -
Variable in class tom.library.sl.Environment
-
- SUCCESS -
Static variable in class tom.library.sl.Environment
-
String
object representing the position.
String
object representing the position.
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |