Public Member Functions | Public Attributes

com.cosylab.acs.laser.dao.utils.LinkSpec Class Reference

List of all members.

Public Member Functions

 LinkSpec (ReductionLinkType link)
boolean matchParent (Alarm parent)
boolean matchChild (Alarm child)
boolean isMultiplicity ()
String toString ()

Public Attributes

final AlarmRefMatcher _parent
final AlarmRefMatcher _child
final boolean _isMultiplicity

Detailed Description

Class representing a link specification between the two nodes of a reduction rule, and that is capable of recognizing if a given Alarm matches the reduction rule definition, considering that the latter might include patterns (e.g., 'a*b') for both fault-family and fault-member fields on the reduction rule parent node.

Reduction rules that include patterns must obey the following rule:

This rules does not mean that errors will appear if a pattern expression is present where it shouldn't; no error will occur, but instead the pattern will be treated as an ordinary string. For example, if the user specifies a fault family DV*, it will not match all fault families DV01, DV02, ..., but instead it will match the fault family named DV*.

Author:
acaproni, rtobar

Constructor & Destructor Documentation

com.cosylab.acs.laser.dao.utils.LinkSpec.LinkSpec ( ReductionLinkType  link  ) 

Member Function Documentation

boolean com.cosylab.acs.laser.dao.utils.LinkSpec.isMultiplicity (  ) 
boolean com.cosylab.acs.laser.dao.utils.LinkSpec.matchChild ( Alarm  child  ) 

Reports if a given Alarm matches as a child, based on the patterns present in the reduction rule's child definition.

Parameters:
child The alarm to be checked as occupying the child role in the reduction rule
Returns:
Whether the alarm is child for the reduction rule or not.

References com.cosylab.acs.laser.dao.utils.LinkSpec._child, and com.cosylab.acs.laser.dao.utils.AlarmRefMatcher.isMatch().

boolean com.cosylab.acs.laser.dao.utils.LinkSpec.matchParent ( Alarm  parent  ) 

Reports if a given Alarm matches as a parent, based on the patterns present in the reduction rule's parent definition.

Parameters:
parent The alarm to be checked as occupying the parent role in the reduction rule
Returns:
Whether the alarm is parent for the reduction rule or not.

References com.cosylab.acs.laser.dao.utils.LinkSpec._parent, and com.cosylab.acs.laser.dao.utils.AlarmRefMatcher.isMatch().

String com.cosylab.acs.laser.dao.utils.LinkSpec.toString (  ) 

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties