se.liu.ida.critiquer.activities.parameters
Interface Parameter<T>
- All Known Implementing Classes:
- AbstractTaskViewParameter, ActivityParameter, AgentParameter, CommanderParameter, DescriptionParameter, LocationParameter, NameParameter, NumberSelectionParameter, SelectionParameter, TimeParameter
public interface Parameter<T>
There may be parameters in activities that are nested within other parameters
but may have to be passed as reference to listeners that are interested in
knowing when things that affect activities are changed. Therefore we have
this interface which is implemented both by ActivityParameter and
AgentParameter. An AgentParameter is associated with a Commander, which in
turn can be associated with several activities. If agents are selected to
commanders, it affects all the activities that the commander is in control
of. Therefore such a change should be propagated to all concerned activities.
The only way to do that is to have a common interface for parameters that are
directly connected to activities and those that are nested deeper within. We
will try to keep the interface light therefore.
- Author:
- olale
getValue
T getValue()
hasValue
boolean hasValue()