t

com.wedriveu.vehicle.control

VehicleBehaviours

trait VehicleBehaviours extends AnyRef

This is the vehicle behaviours models capturing different events.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VehicleBehaviours
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def checkVehicleAndSetItBroken(): Unit

    This method checks the vehicle's state, and if it isn't Stolen, sets it to Broken.

  2. 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.

  3. abstract def goToRecharge(): Unit

    This method is called to start the recharge process of the vehicle.

  4. 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.

  5. 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.

  6. 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.

  7. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped