Eclipse SUMO - Simulation of Urban MObility
NEMAPhase::PhaseDetectorInfo Struct Reference

stores information about the phase's detector(s) More...

#include <NEMAController.h>

Collaboration diagram for NEMAPhase::PhaseDetectorInfo:
[legend]

Public Member Functions

 PhaseDetectorInfo ()
 
 PhaseDetectorInfo (bool latching, PhasePtr cpdSource, PhasePtr cpdTarget)
 

Data Fields

PhasePtr cpdSource
 the cross-phase switching source for myself (1 if 6 should check 1 if 6 is green and I am phase 6) More...
 
PhasePtr cpdTarget
 the cross-phase switching target for myself (6 if 6 should check 1 if 6 is green and I am phase 1) More...
 
bool detectActive
 where any of my detectors are active or not More...
 
std::vector< MSE2Collector * > detectors
 a vector of pointers to the phase's detectors More...
 
bool latching
 whether the detectors are latching or not More...
 

Detailed Description

stores information about the phase's detector(s)

Definition at line 561 of file NEMAController.h.

Constructor & Destructor Documentation

◆ PhaseDetectorInfo() [1/2]

NEMAPhase::PhaseDetectorInfo::PhaseDetectorInfo ( )
inline

Definition at line 562 of file NEMAController.h.

◆ PhaseDetectorInfo() [2/2]

NEMAPhase::PhaseDetectorInfo::PhaseDetectorInfo ( bool  latching,
PhasePtr  cpdSource,
PhasePtr  cpdTarget 
)
inline

Definition at line 569 of file NEMAController.h.

Field Documentation

◆ cpdSource

PhasePtr NEMAPhase::PhaseDetectorInfo::cpdSource

the cross-phase switching source for myself (1 if 6 should check 1 if 6 is green and I am phase 6)

Definition at line 580 of file NEMAController.h.

Referenced by NEMAPhase::checkMyDetectors().

◆ cpdTarget

PhasePtr NEMAPhase::PhaseDetectorInfo::cpdTarget

the cross-phase switching target for myself (6 if 6 should check 1 if 6 is green and I am phase 1)

Definition at line 578 of file NEMAController.h.

Referenced by NEMAPhase::checkMyDetectors().

◆ detectActive

bool NEMAPhase::PhaseDetectorInfo::detectActive

◆ detectors

std::vector<MSE2Collector*> NEMAPhase::PhaseDetectorInfo::detectors

a vector of pointers to the phase's detectors

Definition at line 576 of file NEMAController.h.

Referenced by NEMAPhase::checkMyDetectors(), NEMAPhase::getDetectors(), and NEMAPhase::setDetectors().

◆ latching

bool NEMAPhase::PhaseDetectorInfo::latching

whether the detectors are latching or not

Definition at line 584 of file NEMAController.h.

Referenced by NEMAPhase::clearMyDetectors().


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