public abstract class DecoratorCheckRule
extends java.lang.Object
Constructor and Description |
---|
DecoratorCheckRule()
Creates a new DecoratorCheckRule instance, which checks only the restrictions defined on itself.
|
DecoratorCheckRule(CheckRule cr)
Creates a new DecoratorCheckRule instance, which wraps cr as stated
by Decorator pattern.
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkRule(IRule r)
Checks if the rule r fulfills the terms stated
|
java.util.List<java.lang.String> |
getCauses()
Gets the conditions which the rule didn't comply with
|
java.lang.String |
getCausesString()
Gets a string reporting the causes of the simulator messages
|
void |
initCauses()
Initializes the simulator message causes
|
boolean |
initializedCauses()
Gets if the simulator message causes have been initialized
|
public DecoratorCheckRule()
public DecoratorCheckRule(CheckRule cr)
cr
- the CheckRule instance to be wrappedpublic boolean initializedCauses()
public boolean checkRule(IRule r)
CheckRule
r
- the rule to be checkedorg.gcn.plinguacore.util.psystem.rule.checkRule.CheckRule#checkRule(org.gcn.plinguacore.util.psystem.rule.Rule)
public void initCauses()
public java.lang.String getCausesString()
public java.util.List<java.lang.String> getCauses()
CheckRule
CheckRule.getCauses()