trait VehicleBehaviours extends AnyRef
This is the vehicle behaviours models capturing different events.
- Alphabetic
- By Inheritance
- VehicleBehaviours
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
checkVehicleAndSetItBroken(): Unit
This method checks the vehicle's state, and if it isn't Stolen, sets it to Broken.
-
abstract
def
getDebuggingVar: Boolean
This method is used for retrieve the debugging variable for testing.
This method is used for retrieve the debugging variable for testing.
- returns
The value of the debugging value.
-
abstract
def
goToRecharge(): Unit
This method is called to start the recharge process of the vehicle.
-
abstract
def
movementAndPositionChange(position: Position): Unit
This models the behaviour of the vehicle's movement and position changing.
This models the behaviour of the vehicle's movement and position changing.
- position
Indicates the final position we want for the vehicle.
-
abstract
def
positionChangeUponBooking(userPosition: Position, destinationPosition: Position, notRealisticVar: Boolean): Unit
This method is used when we want the vehicle drives to the user and then to the destination position.
This method is used when we want the vehicle drives to the user and then to the destination position.
- userPosition
Indicates the position of the user.
- destinationPosition
Indicates the destination position for the user.
- notRealisticVar
Setteted to False the execution of the system will be more realistic.
-
abstract
def
setTestUserVar(userVar: Boolean): Unit
This method permits to set test variables in order to handle tests.
This method permits to set test variables in order to handle tests.
- userVar
The value of the variable.
-
abstract
def
setVehicleStolen(): Unit
This method sets the vehicle status to Stolen.
This method sets the vehicle status to Stolen. This state has priority over Broken status.
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )