AskSin++
Classes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
as::StateMachine< PeerList > Class Template Reference
Inheritance diagram for as::StateMachine< PeerList >:
Inheritance graph
[legend]
Collaboration diagram for as::StateMachine< PeerList >:
Collaboration graph
[legend]

Protected Types

enum  { DELAY_NO =0x00, DELAY_INFINITE =0xffffffff }
 

Protected Member Functions

virtual void trigger (__attribute__((unused)) AlarmClock &clock)
 
bool changed () const
 
void changed (bool c)
 
void setState (uint8_t next, uint32_t delay, const PeerList &lst=PeerList(0))
 
virtual void switchState (__attribute__((unused)) uint8_t oldstate, __attribute__((unused)) uint8_t newstate, __attribute__((unused)) uint32_t)
 
void jumpToTarget (const PeerList &lst)
 
virtual uint8_t getNextState (uint8_t stat)
 
virtual uint32_t getDelayForState (uint8_t stat, const PeerList &lst)
 
virtual uint32_t getDefaultDelay (uint8_t stat) const
 
bool delayActive () const
 
void triggerChanged (uint32_t delay)
 
uint8_t getJumpTarget (uint8_t stat, const PeerList &lst) const
 
uint8_t getConditionForState (uint8_t stat, const PeerList &lst) const
 
bool checkCondition (uint8_t stat, const PeerList &lst, uint8_t value)
 

Protected Attributes

uint8_t state: 4
 
bool change: 1
 
ChangedAlarm calarm
 
PeerList actlst
 
- Protected Attributes inherited from as::Alarm
bool m_Async: 4
 
bool m_Active: 4
 

Additional Inherited Members

- Public Member Functions inherited from as::Alarm
virtual void trigger (AlarmClock &)=0
 
 Alarm (uint32_t t)
 
 Alarm (uint32_t t, bool asynch)
 
void set (uint32_t t)
 
void async (bool value)
 
bool async () const
 
void active (bool value)
 
bool active () const
 
- Public Attributes inherited from as::Alarm
uint32_t tick: 24
 

Detailed Description

template<class PeerList>
class as::StateMachine< PeerList >

Definition at line 14 of file StateMachine.h.