Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
PhasePtr cpdTarget
 the cross-phase switching target for myself (6 if 6 should check 1 if 6 is green and I am phase 1)
bool detectActive
 where any of my detectors are active or not
std::vector< MSE2Collector * > detectors
 a vector of pointers to the phase's detectors
bool latching
 whether the detectors are latching or not

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.

References cpdSource, cpdTarget, detectActive, detectors, and latching.

◆ PhaseDetectorInfo() [2/2]

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

Definition at line 569 of file NEMAController.h.

References cpdSource, cpdTarget, detectActive, and latching.

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 PhaseDetectorInfo(), and PhaseDetectorInfo().

◆ 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 PhaseDetectorInfo(), and PhaseDetectorInfo().

◆ detectActive

bool NEMAPhase::PhaseDetectorInfo::detectActive

where any of my detectors are active or not

Definition at line 582 of file NEMAController.h.

Referenced by PhaseDetectorInfo(), and PhaseDetectorInfo().

◆ 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 PhaseDetectorInfo().

◆ latching

bool NEMAPhase::PhaseDetectorInfo::latching

whether the detectors are latching or not

Definition at line 584 of file NEMAController.h.

Referenced by PhaseDetectorInfo(), and PhaseDetectorInfo().


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