org.argouml.cognitive.critics
Class ControlMech
java.lang.Object
org.argouml.cognitive.critics.ControlMech
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CompositeCM, CurDecisionCM, DesignGoalsCM, EnabledCM, NotSnoozedCM
- public abstract class ControlMech
- extends Object
- implements Serializable
A ControlMech determines when a Critic should be active. New
ControlMech's can be added to add value to existing Critic's. Each
ControlMech implements a isRelevant() predicate that determines if a
given critic is relevant to a given Designer at the current
time.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlMech
public ControlMech()
- The constructor.
isRelevant
public boolean isRelevant(Critic c,
Designer d)
- Parameters:
c
- the criticd
- the designer
- Returns:
- true f the critic is relevant for the given designer