BEAST
|
All rules that are used for routing purpose should implement this interface regardless if it is a scripted rule or a static rule. More...
Public Member Functions | |
IBltMessage | handle (IBltMessage message) |
Handle this message. | |
String | getType () |
A description on what type of rule this is, e.g. | |
boolean | isValid () |
Returns if this rule is valid or not. | |
All rules that are used for routing purpose should implement this interface regardless if it is a scripted rule or a static rule.
String eu.baltrad.beast.rules.IRule.getType | ( | ) |
A description on what type of rule this is, e.g.
static, groovy, etc...
Implemented in eu.baltrad.beast.rules.acrr.AcrrRule, eu.baltrad.beast.rules.bdb.BdbTrimAgeRule, eu.baltrad.beast.rules.bdb.BdbTrimCountRule, eu.baltrad.beast.rules.composite.CompositingRule, eu.baltrad.beast.rules.dist.DistributionRule, eu.baltrad.beast.rules.gmap.GoogleMapRule, eu.baltrad.beast.rules.gra.GraRule, eu.baltrad.beast.rules.groovy.GroovyRule, eu.baltrad.beast.rules.scansun.ScansunRule, eu.baltrad.beast.rules.ScriptedRule, eu.baltrad.beast.rules.site2d.Site2DRule, eu.baltrad.beast.rules.system.Log4jAlertMessageRule, eu.baltrad.beast.rules.system.SupervisorAlertMessageRule, eu.baltrad.beast.rules.volume.VolumeRule, and eu.baltrad.beast.rules.wrwp.WrwpRule.
IBltMessage eu.baltrad.beast.rules.IRule.handle | ( | IBltMessage | message | ) |
Handle this message.
If returning a message it means that this rule has evaluated to true and the message should be managed. Otherwise, if null is returned, the rule has either managed the message or it can not handle the message.
message |
Implemented in eu.baltrad.beast.rules.acrr.AcrrRule, eu.baltrad.beast.rules.bdb.BdbTrimAgeRule, eu.baltrad.beast.rules.bdb.BdbTrimCountRule, eu.baltrad.beast.rules.composite.CompositingRule, eu.baltrad.beast.rules.dist.DistributionRule, eu.baltrad.beast.rules.gmap.GoogleMapRule, eu.baltrad.beast.rules.gra.GraRule, eu.baltrad.beast.rules.groovy.GroovyRule, eu.baltrad.beast.rules.scansun.ScansunRule, eu.baltrad.beast.rules.ScriptedRule, eu.baltrad.beast.rules.site2d.Site2DRule, eu.baltrad.beast.rules.system.Log4jAlertMessageRule, eu.baltrad.beast.rules.system.SupervisorAlertMessageRule, eu.baltrad.beast.rules.volume.VolumeRule, and eu.baltrad.beast.rules.wrwp.WrwpRule.
boolean eu.baltrad.beast.rules.IRule.isValid | ( | ) |
Returns if this rule is valid or not.
Even if a rule is deemed to be invalid, it will not prevent the rule from beeing invoked it is just a way to indicate that there might be a problem with the rule it self. So a suggested approach is that if isValid() returns false, then handle() probably also should return null.
Implemented in eu.baltrad.beast.rules.acrr.AcrrRule, eu.baltrad.beast.rules.bdb.BdbTrimAgeRule, eu.baltrad.beast.rules.bdb.BdbTrimCountRule, eu.baltrad.beast.rules.composite.CompositingRule, eu.baltrad.beast.rules.dist.DistributionRule, eu.baltrad.beast.rules.gmap.GoogleMapRule, eu.baltrad.beast.rules.groovy.GroovyRule, eu.baltrad.beast.rules.scansun.ScansunRule, eu.baltrad.beast.rules.ScriptedRule, eu.baltrad.beast.rules.site2d.Site2DRule, eu.baltrad.beast.rules.system.Log4jAlertMessageRule, eu.baltrad.beast.rules.system.SupervisorAlertMessageRule, eu.baltrad.beast.rules.volume.VolumeRule, and eu.baltrad.beast.rules.wrwp.WrwpRule.