|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Strategy
Class modelling a Strategy. The public variables indicate which strategies are supported.
Field Summary | |
---|---|
static int |
ARBITRARY
|
static int |
CONTEXTSENSITIVE
|
static int |
INNERMOST
|
static int |
OUTERMOST
|
Method Summary | |
---|---|
void |
addRestriction(java.lang.String function,
java.util.List<java.lang.Integer> poss)
Adds a restriction to the replacement map. |
java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> |
getReplacementMap()
Gets the replacement map of the strategy. |
int |
getType()
Gets the type of the strategies, possible types are Strategy.INNERMOST Strategy.OUTERMOST Strategy.CONTEXTSENSITIVE Strategy.ARBITRARY Note that the type of strategy is final, i.e. it cannot be changed after the Strategy has been initialized. |
void |
setReplacementMap(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> repMap)
Sets the replacement map of the strategy. |
Field Detail |
---|
static final int INNERMOST
static final int OUTERMOST
static final int CONTEXTSENSITIVE
static final int ARBITRARY
Method Detail |
---|
void setReplacementMap(java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> repMap)
repMap
- The new replacement map.java.util.Map<java.lang.String,java.util.List<java.lang.Integer>> getReplacementMap()
void addRestriction(java.lang.String function, java.util.List<java.lang.Integer> poss)
function
- The function for which the restriction is added.poss
- The restriction, given by a list of integers specifying the allowed positions.int getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |