org.argouml.cognitive
Class StandardCM

java.lang.Object
  extended by 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

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.


Constructor Summary
StandardCM()
          The constructor.
 
Method Summary
 void addMech(ControlMech cm)
           
protected  java.util.List<ControlMech> getMechList()
           
 boolean isRelevant(Critic c, Designer d)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardCM

public StandardCM()
The constructor.

Method Detail

isRelevant

public boolean isRelevant(Critic c,
                          Designer d)
Parameters:
c - the critic
d - 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


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook