trait VehicleControl extends AnyRef
This models the control part of the vehicle.
- Alphabetic
- By Inheritance
- VehicleControl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
changePositionUponBooking(userPosition: Position, destinationPosition: Position, notRealisticVar: Boolean): Unit
This method should be called when a booking request arrive from the service.
This method should be called when a booking request arrive from the service.
- userPosition
Indicates the user position.
- destinationPosition
Indicates the destination position for the user.
- notRealisticVar
Setteted to False the execution of the system will be more realistic.
-
abstract
def
getBehavioursControl(): VehicleBehaviours
This method permits to retrieve the behaviours control of the system
This method permits to retrieve the behaviours control of the system
- returns
The behaviours instance.
-
abstract
def
getUserOnBoard(): Boolean
This method permits to retrieve the variable which indicates if the user is on board or not.
This method permits to retrieve the variable which indicates if the user is on board or not.
- returns
True if the user is on board, False otherwise.
-
abstract
def
getUsername: String
This method permits to retrieve the username of the user associated to this vehicle.
This method permits to retrieve the username of the user associated to this vehicle.
- returns
The username of the user.
-
abstract
def
getVehicle(): SelfDrivingVehicle
This is usefull to get the vehicle for retrieve vehicle informations.
This is usefull to get the vehicle for retrieve vehicle informations.
- returns
Returns the instance of the vehicle.
-
abstract
def
goToDestination(position: Position): Unit
This method permits to execute the behaviour "Change Position".
This method permits to execute the behaviour "Change Position".
- position
The position to reach.
-
abstract
def
setUserOnBoard(userOnBoard: Boolean): Unit
This method permits to set the internal variable if the user is on board or not.
This method permits to set the internal variable if the user is on board or not.
- userOnBoard
True if the user is on board, False otherwise.
-
abstract
def
setUsername(newUsername: String): Unit
This method permits to define the username of the user associated to this vehicle.
This method permits to define the username of the user associated to this vehicle.
- newUsername
This indicates the new username to set.
-
abstract
def
startVehicleEngine(): Unit
This starts the engine of the vehicle, initializing the communication infrastructure.
-
abstract
def
subscribeToBrokenEvents(): Unit
This method permits, at configurator will, to pick up Vehicle Broken events.
-
abstract
def
subscribeToStolenEvents(): Unit
This method permits, at configurator will, to pick up Vehicle Stolen events.
-
abstract
def
unsubscribeToBrokenEvents(): Unit
This method permits to unsubsribe the control system to vehicle broken events.
-
abstract
def
unsubscribeToStolenEvents(): Unit
This method permits to unsubsribe the control system to vehicle stolen events.
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( ... )