se.liu.ida.critiquer.activities.parameters
Class LocationParameter
java.lang.Object
se.liu.ida.critiquer.activities.parameters.ActivityParameter<Location>
se.liu.ida.critiquer.activities.parameters.LocationParameter
- All Implemented Interfaces:
- Serializable, GeoViewParameter, Parameter<Location>
public class LocationParameter
- extends ActivityParameter<Location>
- implements GeoViewParameter
- See Also:
- Serialized Form
Method Summary |
LocationParameter.Type |
getType()
|
boolean |
setValue(Location newValue)
Update the value of this parameter iff the value is consistent for this
parameter The updating is performed with a binary semaphore set so that
there can be no more than one thread updating and signalling activities
of a value update |
String |
toString()
|
LocationParameter
public LocationParameter(LocationParameter.Type type,
String name,
Activity a)
setValue
public boolean setValue(Location newValue)
- Description copied from class:
ActivityParameter
- Update the value of this parameter iff the value is consistent for this
parameter The updating is performed with a binary semaphore set so that
there can be no more than one thread updating and signalling activities
of a value update
- Overrides:
setValue
in class ActivityParameter<Location>
- Parameters:
newValue
- The value to set. Sets a value and notifies all listeners
- Returns:
- true if the change was consistent, false otherwise.
toString
public String toString()
- Specified by:
toString
in class ActivityParameter<Location>
getType
public LocationParameter.Type getType()
- Returns:
- Returns the type.