|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.rule.RelabelingSystem
public class RelabelingSystem
Relabeling System.
Field Summary | |
---|---|
protected java.lang.String |
description
|
protected RuleVector |
rules
|
RSOptions |
userPreferences
|
Constructor Summary | |
---|---|
RelabelingSystem()
default constructor. |
|
RelabelingSystem(java.util.Collection rulesCollection)
constructor from a collection of rules. |
Method Summary | |
---|---|
void |
addGlobEndRule(Rule r)
add a Global End rule to the relabeling system. |
void |
addRule(Rule r)
add a rule to the relabeling system. |
int |
checkForRule(Star n)
check if any rule is applicable to the context n. returns the position of the rule, -1 if no rule is applicable . |
java.lang.Object |
clone()
clones the relabeling system (including options). |
int |
defaultSynchronisation()
this methode returns an integer RDV LC1 RDV_LC1 or LC2, indicating witch synchronisation algorithms are supported by this relabeling system. |
int |
dupplicateSimpleRules(int synType)
this methode create and add the symetric of a simple Rule (if not exists). it respects caracteristics of synchronisation algorithm on use. |
java.lang.String |
getDescription()
get a help. |
RSOptions |
getOptions()
returns the options. |
Rule |
getRule(int i)
return the rule at position i. |
java.util.Iterator |
getRules()
return an iterator of rules. |
void |
resetOptions()
restore the default options. |
void |
setDescription(java.lang.String txt)
set a help text concerning the relabeling system. |
void |
setOptions(RSOptions opt)
sets the options. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String description
protected RuleVector rules
public RSOptions userPreferences
Constructor Detail |
---|
public RelabelingSystem()
public RelabelingSystem(java.util.Collection rulesCollection)
rulesCollection
- the collection of rules.Method Detail |
---|
public void setOptions(RSOptions opt)
opt
- the object describing options.public void resetOptions()
public int dupplicateSimpleRules(int synType)
synType
- indicates the synchronisation algorithm to respect.
public int defaultSynchronisation()
public RSOptions getOptions()
public java.lang.String toString()
toString
in class java.lang.Object
public void addRule(Rule r)
r
- the rule to add.public void addGlobEndRule(Rule r)
r
- the rule to add.public java.util.Iterator getRules()
public Rule getRule(int i)
i
- position
public java.lang.Object clone()
clone
in class java.lang.Object
public void setDescription(java.lang.String txt)
txt
- public java.lang.String getDescription()
public int checkForRule(Star n)
n
- a context.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |