EntityPermanence

Model the permanence of an entity inside a structure.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

The entity that is inside the structure.

The entity that is inside the structure.

Returns:

the entity

The permanence time inside the structure.

The permanence time inside the structure.

Returns:

the duration time

def status(timestampToCheck: TimeStamp): PermanenceStatus

Considering the timestamp in which the entity is entered and the permanence duration time is possible to understand if the entity is allowed to stay inside or it needs to exit.

Considering the timestamp in which the entity is entered and the permanence duration time is possible to understand if the entity is allowed to stay inside or it needs to exit.

Value parameters:
timestampToCheck

the timestamp respect to which perform the check.

Returns:

a PermanenceStatus that represent the status of the permanence.

The timestamp that represent the entry time of the entity inside the structure.

The timestamp that represent the entry time of the entity inside the structure.

Returns:

the timestamp