Pixie16 Analysis Software Suite
Analysis code for processing of .ldf files
PlaceLazy Class Reference

"Lazy" Place does not store multiple activation or deactivation events. Abstract class. More...

#include <Places.hpp>

Inheritance diagram for PlaceLazy:
Collaboration diagram for PlaceLazy:

Public Member Functions

 PlaceLazy (bool resetable=true, unsigned max_size=2)
 
virtual void activate (EventData &info)
 
virtual void deactivate (double time)
 
- Public Member Functions inherited from Place
 Place (bool resetable=true, unsigned max_size=2)
 
virtual ~Place ()
 
virtual void addChild (Place *child, bool coin=true)
 
virtual bool checkChildren (Place *child)
 
virtual bool checkParents (Place *child)
 
virtual void activate (double time)
 
virtual void reset ()
 
virtual bool operator&& (const Place &right) const
 
virtual bool operator|| (const Place &right) const
 
virtual bool operator() () const
 
virtual bool status () const
 
virtual EventDataoperator[] (unsigned index)
 
virtual EventData operator[] (unsigned index) const
 
virtual EventData last ()
 
virtual EventData secondlast ()
 
virtual bool resetable () const
 

Additional Inherited Members

- Data Fields inherited from Place
std::deque< EventDatainfo_
 
- Protected Member Functions inherited from Place
virtual void check_ (EventData &info)=0
 
virtual void addParent_ (Place *parent)
 
virtual void report_ (EventData &info)
 
virtual void add_info_ (const EventData &info)
 
- Protected Attributes inherited from Place
unsigned max_size_
 
bool status_
 
bool resetable_
 
std::vector< std::pair< Place *, bool > > children_
 
std::vector< Place * > parents_
 

Detailed Description

"Lazy" Place does not store multiple activation or deactivation events. Abstract class.

Constructor & Destructor Documentation

PlaceLazy::PlaceLazy ( bool  resetable = true,
unsigned  max_size = 2 
)
inline

A constructor for the lazy place

Parameters
[in]resetable: sets the place resetable or not
[in]max_size: the maximum size of the place

Member Function Documentation

virtual void PlaceLazy::activate ( EventData info)
inlinevirtual

Activates Place and saves event data to deque only if place was not active before.

Parameters
[in]info: the information to use to activate the place

Reimplemented from Place.

virtual void PlaceLazy::deactivate ( double  time)
inlinevirtual

Changes status to false, time and status change is recorded in fifo only if Place was active before.

Parameters
[in]time: the time to deactivate the place

Reimplemented from Place.


The documentation for this class was generated from the following file: