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 VelocityIfc
An interface for working with velocity
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
getVelocity()
double
getVelocityChangeFactor()
The addFactor will be used to increase or decrease the velocity returned by getVelocity()RandomIfc
getVelocityInitialRandomSource()
RandomIfc
getVelocityRandomSource()
void
setVelocityChangeFactor(double factor)
The addFactor will be used to increase or decrease the velocity returned by getVelocity()void
setVelocityInitialRandomSource(RandomIfc source)
Sets the underlying initial random source associated with the determination of the velocityvoid
setVelocityRandomSource(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
-
-