Package jsl.modeling.elements.spatial
Interface VelocityIfc
-
- All Known Subinterfaces:
MovementControllerIfc,MoverIfc
- All Known Implementing Classes:
AbstractMovementController,AbstractMover,AbstractRG2DMover,EuclideanStepBasedMovementController,MobileResource,Mover,RandomMover,RG2DMover,Transporter
public interface VelocityIfcAn interface for working with velocity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetVelocity()doublegetVelocityChangeFactor()The addFactor will be used to increase or decrease the velocity returned by getVelocity()RandomIfcgetVelocityInitialRandomSource()RandomIfcgetVelocityRandomSource()voidsetVelocityChangeFactor(double factor)The addFactor will be used to increase or decrease the velocity returned by getVelocity()voidsetVelocityInitialRandomSource(RandomIfc source)Sets the underlying initial random source associated with the determination of the velocityvoidsetVelocityRandomSource(RandomIfc source)Sets the current underlying random source associated with the determination of the velocity
-
-
-
Method Detail
-
setVelocityChangeFactor
void setVelocityChangeFactor(double factor)
The addFactor will be used to increase or decrease the velocity returned by getVelocity()- Parameters:
factor- must be greater than zero
-
getVelocityChangeFactor
double getVelocityChangeFactor()
The addFactor will be used to increase or decrease the velocity returned by getVelocity()- Returns:
- the addFactor
-
getVelocity
double getVelocity()
- Returns:
- the velocity
-
getVelocityInitialRandomSource
RandomIfc getVelocityInitialRandomSource()
- Returns:
- Returns the velocity.
-
setVelocityInitialRandomSource
void setVelocityInitialRandomSource(RandomIfc source)
Sets the underlying initial random source associated with the determination of the velocity- Parameters:
source- the source
-
getVelocityRandomSource
RandomIfc getVelocityRandomSource()
- Returns:
- Returns the velocity.
-
setVelocityRandomSource
void setVelocityRandomSource(RandomIfc source)
Sets the current underlying random source associated with the determination of the velocity- Parameters:
source- the source
-
-