|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.liu.ida.critiquer.activities.AbstractParamChangedListener
se.liu.ida.critiquer.constraints.StandardConstraint
se.liu.ida.critiquer.scenarios.standard.CorrectOrdering
public class CorrectOrdering
Verify that there is a destination in the activity that should come before and a static location in the after activity, or a static location in the beforeActivity and a starting location in the afterActivity
Field Summary |
---|
Fields inherited from class se.liu.ida.critiquer.constraints.StandardConstraint |
---|
applicableViews, statusListeners, violationActivities |
Constructor Summary | |
---|---|
CorrectOrdering()
|
Method Summary | ||
---|---|---|
boolean |
childOfCheck(Activity parentActivity,
Activity Child)
|
|
String |
getDescription()
Describe this constraint |
|
String |
getText()
|
|
protected void |
initApplicableViews()
Make this view applicable to the task view |
|
boolean |
orderingCheck(Activity beforeActivity,
Activity afterActivity)
Checks the ordering consistency |
|
|
paramChanged(Activity activity,
Parameter<T> p)
A parameter has changed value |
|
|
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. |
|
void |
viewUpdated(View v,
Graphics2D g2)
|
Methods inherited from class se.liu.ida.critiquer.constraints.StandardConstraint |
---|
addStatusListener, debug, error, getApplicableViews, getColor, info, isActive, isApplicableFor, isConsistent, removeStatusListener, setActive, setColor, setConsistent, warn |
Methods inherited from class se.liu.ida.critiquer.activities.AbstractParamChangedListener |
---|
activityCreated, activityRemoved, activityUpdated, compareTo, paramAdded |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CorrectOrdering()
Method Detail |
---|
public <T> boolean paramValueCheck(Activity a, Parameter<T> p, T newValue)
ActivityConsistencyCheck
paramValueCheck
in interface ActivityConsistencyCheck
T
- -
The type of value the parameter representsnewValue
- -
The suggested new value
public boolean childOfCheck(Activity parentActivity, Activity Child)
childOfCheck
in interface ActivityConsistencyCheck
public boolean orderingCheck(Activity beforeActivity, Activity afterActivity)
orderingCheck
in interface ActivityConsistencyCheck
se.liu.ida.critiquer.activities.ActivityConsistencyCheck#orderingCheck(se.liu.ida.critiquer.activities.Activity,
critiquer.activities.Activity)
public <T> void paramChanged(Activity activity, Parameter<T> p)
ActivityUpdateListener
paramChanged
in interface ActivityUpdateListener
paramChanged
in class AbstractParamChangedListener
public String getDescription()
getDescription
in interface SingletonConstraint
SingletonConstraint.getDescription()
protected void initApplicableViews()
initApplicableViews
in class StandardConstraint
StandardConstraint.initApplicableViews()
public void viewUpdated(View v, Graphics2D g2)
viewUpdated
in interface ViewRenderingListener
public String getText()
getText
in interface TextCritic
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |