org.argouml.cognitive
Class StandardCM
java.lang.Object
org.argouml.cognitive.StandardCM
- All Implemented Interfaces:
- ControlMech
public class StandardCM
- extends java.lang.Object
The standard Control Mech. It extends an ANDControlMech with the individual
cm's
- EnabledCM
- NotSnoozedCM
- DesignGoalsCM
- CurDecisionCM
implying that a critic is relevant if and if only it is enabled, not snoozed,
applicable to the current goals and relevant decisions to be supported.
Mech is short for Mechanism.
A Control Mechanism is a structured way
to calculate a single condition from multiple different unrelated ones.
In the case of a StandardCM,
the single condition holds if we are enabled,
and not snoozed,
and fulfill designgoals,
and the designer is interested in these decisions.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StandardCM
public StandardCM()
- 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
getMechList
protected java.util.List<ControlMech> getMechList()
- Returns:
- a list of the ControlMechs.
addMech
public void addMech(ControlMech cm)
- Parameters:
cm
- the ControlMech