Node: clean up and document properties

This commit is contained in:
Thomas Gelf 2015-01-28 19:53:55 +01:00
parent 1a0db0320d
commit 47b8f00900

View file

@ -12,16 +12,58 @@ abstract class Node
const FLAG_NONE = 8; const FLAG_NONE = 8;
const SHIFT_FLAGS = 4; const SHIFT_FLAGS = 4;
/**
* Main business process object
*
* @var BusinessProcess
*/
protected $bp; protected $bp;
/**
* Parent node
*
* @var Node
*/
protected $parent; protected $parent;
/**
* Node identifier
*
* @var string
*/
protected $name; protected $name;
/**
* Node state
*
* @var int
*/
protected $state; protected $state;
protected $description;
# protected $flags = 0; /**
* Whether this nodes state has been acknowledged
*
* @var bool
*/
protected $ack; protected $ack;
/**
* Whether this node is in a scheduled downtime
*
* @var bool
*/
protected $downtime; protected $downtime;
protected $recent_problems = array();
// obsolete
protected $duration; protected $duration;
/**
* Last state change, unix timestamp
*
* @var int
*/
protected $lastStateChange;
protected $missing = false; protected $missing = false;
protected static $state_names = array( protected static $state_names = array(