agg.parser
Class CriticalPairOption

java.lang.Object
  extended by agg.parser.CriticalPairOption

public class CriticalPairOption
extends java.lang.Object

This option configures the algorithm of the critical pairs.


Field Summary
static java.lang.String COMPLETE
           
static java.lang.String CONSISTENT
           
static int DEPENDONLY
          Deprecated. replaced by TRIGGER_DEPEND
static java.lang.String ESSENTIAL
           
static int EXCLUDEONLY
          The algorithm of the critical pairs.
static java.lang.String IGNORE_SAME_MATCH
           
static java.lang.String IGNORE_SAME_RULE
           
static java.lang.String STRONG_ATTR_CHECK
           
static int TRIGGER_DEPEND
          The additional algorithm of the critical pairs.
static int TRIGGER_SWITCH_DEPEND
           
 
Constructor Summary
CriticalPairOption()
          Creates new option with default settings.
 
Method Summary
 void addOptionListener(OptionEventListener l)
          Adds an option listener.
 boolean completeEnabled()
           
 boolean consistentEnabled()
           
 void enableComplete(boolean enable)
           
 void enableConsistent(boolean enable)
           
 void enableEqualVariableNameOfAttrMapping(boolean enable)
           
 void enableIgnoreIdenticalRules(boolean enable)
           
 void enableLayered(boolean enable)
          Enable if layered graph grammar is used.
 void enableNacs(boolean enable)
           
 void enablePacs(boolean enable)
           
 void enablePriority(boolean enable)
           
 void enableReduce(boolean enable)
           
 void enableReduceSameMatch(boolean enable)
           
 void enableStrongAttrCheck(boolean enable)
           
 void enableSwitchDependency(boolean enable)
           
 boolean equalVariableNameOfAttrMappingEnabled()
           
 int getCriticalPairAlgorithm()
          Returns the algorithm of the critical pair analysis.
 int getLayer()
           
 boolean ignoreIdenticalRulesEnabled()
           
 boolean layeredEnabled()
          Checks if the graph grammar is layered.
 boolean nacsEnabled()
           
 boolean pacsEnabled()
           
 boolean priorityEnabled()
           
 boolean reduceEnabled()
           
 boolean reduceSameMatchEnabled()
           
 void removeOptionListener(OptionEventListener l)
          Removes an option listener
 void setCriticalPairAlgorithm(int algorithm)
          Sets the algorithm of the critical pair algorithm.
 void setLayer(int l)
           
 void setOptionsFromList(java.util.List<Pair<java.lang.String,java.lang.String>> optionList)
           
 boolean strongAttrCheckEnabled()
           
 boolean switchDependencyEnabled()
           
 java.lang.String toString()
          Returns the option in human readable way.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMPLETE

public static final java.lang.String COMPLETE
See Also:
Constant Field Values

CONSISTENT

public static final java.lang.String CONSISTENT
See Also:
Constant Field Values

STRONG_ATTR_CHECK

public static final java.lang.String STRONG_ATTR_CHECK
See Also:
Constant Field Values

IGNORE_SAME_MATCH

public static final java.lang.String IGNORE_SAME_MATCH
See Also:
Constant Field Values

IGNORE_SAME_RULE

public static final java.lang.String IGNORE_SAME_RULE
See Also:
Constant Field Values

ESSENTIAL

public static final java.lang.String ESSENTIAL
See Also:
Constant Field Values

EXCLUDEONLY

public static final int EXCLUDEONLY
The algorithm of the critical pairs.

See Also:
Constant Field Values

TRIGGER_DEPEND

public static final int TRIGGER_DEPEND
The additional algorithm of the critical pairs.

See Also:
Constant Field Values

TRIGGER_SWITCH_DEPEND

public static final int TRIGGER_SWITCH_DEPEND
See Also:
Constant Field Values

DEPENDONLY

public static final int DEPENDONLY
Deprecated. replaced by TRIGGER_DEPEND
See Also:
Constant Field Values
Constructor Detail

CriticalPairOption

public CriticalPairOption()
Creates new option with default settings.

Method Detail

getCriticalPairAlgorithm

public int getCriticalPairAlgorithm()
Returns the algorithm of the critical pair analysis.

Returns:
The algorithm

setCriticalPairAlgorithm

public void setCriticalPairAlgorithm(int algorithm)
Sets the algorithm of the critical pair algorithm.

Parameters:
algorithm - The algorithm.

switchDependencyEnabled

public boolean switchDependencyEnabled()

enableSwitchDependency

public void enableSwitchDependency(boolean enable)

priorityEnabled

public boolean priorityEnabled()

enablePriority

public void enablePriority(boolean enable)

layeredEnabled

public boolean layeredEnabled()
Checks if the graph grammar is layered.

Returns:
true if the graph grammar is layered

enableLayered

public void enableLayered(boolean enable)
Enable if layered graph grammar is used.

Parameters:
enable - true for layered graph grammar

setLayer

public void setLayer(int l)

getLayer

public int getLayer()

setOptionsFromList

public void setOptionsFromList(java.util.List<Pair<java.lang.String,java.lang.String>> optionList)

completeEnabled

public boolean completeEnabled()

enableComplete

public void enableComplete(boolean enable)

reduceEnabled

public boolean reduceEnabled()

enableReduce

public void enableReduce(boolean enable)

reduceSameMatchEnabled

public boolean reduceSameMatchEnabled()

enableReduceSameMatch

public void enableReduceSameMatch(boolean enable)

enableNacs

public void enableNacs(boolean enable)

nacsEnabled

public boolean nacsEnabled()

enablePacs

public void enablePacs(boolean enable)

pacsEnabled

public boolean pacsEnabled()

consistentEnabled

public boolean consistentEnabled()

enableConsistent

public void enableConsistent(boolean enable)

strongAttrCheckEnabled

public boolean strongAttrCheckEnabled()

enableStrongAttrCheck

public void enableStrongAttrCheck(boolean enable)

equalVariableNameOfAttrMappingEnabled

public boolean equalVariableNameOfAttrMappingEnabled()

enableEqualVariableNameOfAttrMapping

public void enableEqualVariableNameOfAttrMapping(boolean enable)

ignoreIdenticalRulesEnabled

public boolean ignoreIdenticalRulesEnabled()

enableIgnoreIdenticalRules

public void enableIgnoreIdenticalRules(boolean enable)

addOptionListener

public void addOptionListener(OptionEventListener l)
Adds an option listener.

Parameters:
l - The listener.

removeOptionListener

public void removeOptionListener(OptionEventListener l)
Removes an option listener

Parameters:
l - The listener.

toString

public java.lang.String toString()
Returns the option in human readable way.

Overrides:
toString in class java.lang.Object
Returns:
The text.