22 typedef std::array<uint8_t, WireFormat::size<SwitchBehaviour>() + WireFormat::size<PresenceCondition>()>
32 virtual uint8_t*
serialize(uint8_t* outbuff,
size_t max_size)
override;
Type
Definition: cs_Behaviour.h:22
A smart timer behaviour is a switch behaviour that is allowed to extend itself passed the until time ...
Definition: cs_ExtendedSwitchBehaviour.h:20
std::optional< Time > prevExtensionIsValidTimeStamp
Definition: cs_ExtendedSwitchBehaviour.h:78
ExtendedSwitchBehaviour(SerializedDataType arr)
PresenceCondition extensionCondition
Definition: cs_ExtendedSwitchBehaviour.h:63
virtual Type getType() const override
Definition: cs_ExtendedSwitchBehaviour.h:35
virtual PresencePredicate currentPresencePredicate() override
SerializedDataType serialize()
virtual size_t serializedSize() const override
virtual ~ExtendedSwitchBehaviour()=default
virtual uint8_t * serialize(uint8_t *outbuff, size_t max_size) override
virtual bool isValid(Time currenttime, PresenceStateDescription currentpresence)
Does the behaviour apply to the current situation? Depends on corebehaviour, extensionIsActive and ex...
virtual bool requiresPresence() override
bool extensionIsActive
extensionIsActive will be set to true when at the end of the core behaviour valid period a call to is...
Definition: cs_ExtendedSwitchBehaviour.h:77
std::array< uint8_t, WireFormat::size< SwitchBehaviour >()+WireFormat::size< PresenceCondition >()> SerializedDataType
Definition: cs_ExtendedSwitchBehaviour.h:23
bool extensionPeriodIsActive()
Definition: cs_ExtendedSwitchBehaviour.h:60
ExtendedSwitchBehaviour(SwitchBehaviour corebehaviour, PresenceCondition extensioncondition)
virtual bool requiresAbsence() override
Definition: cs_PresenceCondition.h:14
Definition: cs_PresencePredicate.h:15
Class that holds the presence of a profile.
Definition: cs_PresenceDescription.h:23
Object that defines when a state transition should occur.
Definition: cs_SwitchBehaviour.h:26
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Sep 24,...
Definition: cs_Time.h:14