Class MoveTask

    • Field Detail

      • PROPERTY_TYPENAME

        public static final java.lang.String PROPERTY_TYPENAME
        The destination property.
        See Also:
        Constant Field Values
      • PROPERTY_DESTINATION

        public static final java.lang.String PROPERTY_DESTINATION
        The destination property.
        See Also:
        Constant Field Values
      • PROPERTY_SCOPE

        public static final java.lang.String PROPERTY_SCOPE
        The scope property.
        See Also:
        Constant Field Values
      • PROPERTY_SPEED

        public static final java.lang.String PROPERTY_SPEED
        The speed property of the moving object (units per second).
        See Also:
        Constant Field Values
      • PROPERTY_VISION

        public static final java.lang.String PROPERTY_VISION
        The vision property of the moving object (radius in units).
        See Also:
        Constant Field Values
      • PROPERTY_TARGETRADIUS

        public static final java.lang.String PROPERTY_TARGETRADIUS
        The target radius.
        See Also:
        Constant Field Values
    • Constructor Detail

      • MoveTask

        public MoveTask()
    • Method Detail

      • execute

        public void execute​(IEnvironmentSpace space,
                            ISpaceObject obj,
                            long progress,
                            IClockService clock)
        Executes the task. Handles exceptions. Subclasses should implement doExecute() instead.
        Specified by:
        execute in interface IObjectTask
        Overrides:
        execute in class AbstractTask
        Parameters:
        space - The environment in which the task is executing.
        obj - The object that is executing the task.
        progress - The time that has passed according to the environment executor.
        clock - The clock service.