se.liu.ida.critiquer.activities
Interface ActivityConsistencyCheck

All Known Implementing Classes:
AbstractParamValueCheck, CorrectOrdering

public interface ActivityConsistencyCheck

Classes implementing this interface are checked before changes to activities occur. If the methods in this interface return true, the changes take place. Otherwise not.

Author:
olale

Method Summary
 boolean childOfCheck(Activity parentActivity, Activity Child)
           
 boolean orderingCheck(Activity beforeActivity, Activity AfterActivity)
           
<T> boolean
paramValueCheck(Activity a, Parameter<T> p, T newValue)
          Whenever a paramChanged event occurs, this method is called in all registered ActivityConsistencyCheck listeners that are available in an activity.
 

Method Detail

paramValueCheck

<T> boolean paramValueCheck(Activity a,
                            Parameter<T> p,
                            T newValue)
Whenever a paramChanged event occurs, this method is called in all registered ActivityConsistencyCheck listeners that are available in an activity.

Type Parameters:
T - - The type of value the parameter represents
Parameters:
a -
p -
newValue - - The suggested new value
Returns:
true - if the change is allowed, false if not

childOfCheck

boolean childOfCheck(Activity parentActivity,
                     Activity Child)

orderingCheck

boolean orderingCheck(Activity beforeActivity,
                      Activity AfterActivity)