Class AbstractMovementController

    • Field Detail

      • myVelFactor

        protected double myVelFactor
        The velocity addFactor, default is 1. If this is changed, it is changed for all replications
    • Constructor Detail

      • AbstractMovementController

        public AbstractMovementController​(ModelElement parent)
        Parameters:
        parent -
      • AbstractMovementController

        public AbstractMovementController​(ModelElement parent,
                                          java.lang.String name)
        Parameters:
        parent -
        name -
    • Method Detail

      • setVelocityChangeFactor

        public final void setVelocityChangeFactor​(double factor)
        Description copied from interface: VelocityIfc
        The addFactor will be used to increase or decrease the velocity returned by getVelocity()
        Specified by:
        setVelocityChangeFactor in interface VelocityIfc
        Parameters:
        factor - must be greater than zero
      • getVelocityChangeFactor

        public final double getVelocityChangeFactor()
        Description copied from interface: VelocityIfc
        The addFactor will be used to increase or decrease the velocity returned by getVelocity()
        Specified by:
        getVelocityChangeFactor in interface VelocityIfc
        Returns:
        the addFactor
      • getVelocity

        public double getVelocity()
        The velocity for an individual movement
        Specified by:
        getVelocity in interface VelocityIfc
        Returns:
      • setVelocityInitialRandomSource

        public final void setVelocityInitialRandomSource​(RandomIfc velocity)
        Description copied from interface: VelocityIfc
        Sets the underlying initial random source associated with the determination of the velocity
        Specified by:
        setVelocityInitialRandomSource in interface VelocityIfc
        Parameters:
        velocity - The velocity to set.
      • setVelocityRandomSource

        public final void setVelocityRandomSource​(RandomIfc velocity)
        Description copied from interface: VelocityIfc
        Sets the current underlying random source associated with the determination of the velocity
        Specified by:
        setVelocityRandomSource in interface VelocityIfc
        Parameters:
        velocity - The velocity to set.