se.liu.ida.critiquer.constraints
Interface VisualConstraint

All Superinterfaces:
Serializable, ViewRenderingListener
All Known Implementing Classes:
ActivityStructureCritic, AgentMutex, CorrectOrdering, FuelLowCritic, NonSuitableAgent, ResourceUsageCritic, SimulationCritic, StandardConstraint, StructureCritic, TestActivityArea, TimeCalculator, TimeParameterOrdering, TooLongTime

public interface VisualConstraint
extends ViewRenderingListener, Serializable

Visual constraints can be rendered on top of the views and also have colors that the user may modify. Currently, every constraint has only one color associated with


Method Summary
 List<Class<? extends View>> getApplicableViews()
           
 Color getColor()
           
 boolean isActive()
          Should this constraint be displayed?
 boolean isApplicableFor(View view)
           
 void setActive(boolean active)
          Toggles the active state of this constraint on and off.
 void setColor(Color c)
           
 
Methods inherited from interface se.liu.ida.critiquer.gui.ViewRenderingListener
viewUpdated
 

Method Detail

getColor

Color getColor()

setColor

void setColor(Color c)

getApplicableViews

List<Class<? extends View>> getApplicableViews()

isApplicableFor

boolean isApplicableFor(View view)

setActive

void setActive(boolean active)
Toggles the active state of this constraint on and off. This does not affect that updates that this constraint gets from the activities though

Parameters:
active -

isActive

boolean isActive()
Should this constraint be displayed?

Returns:
true iff this constraint should be displayed