org.argouml.cognitive.critics
Class ControlMech

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

Constructor Summary
ControlMech()
          The constructor.
 
Method Summary
 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

ControlMech

public ControlMech()
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


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook