Eclipse SUMO - Simulation of Urban MObility
MSNet::TransportableStateListener Class Referenceabstract

Interface for objects listening to transportable state changes. More...

#include <MSNet.h>

Inheritance diagram for MSNet::TransportableStateListener:
[legend]

Public Member Functions

virtual void transportableStateChanged (const MSTransportable *const transportable, TransportableState to, const std::string &info="")=0
 Called if a transportable changes its state. More...
 
 TransportableStateListener ()
 Constructor. More...
 
virtual ~TransportableStateListener ()
 Destructor. More...
 

Detailed Description

Interface for objects listening to transportable state changes.

Definition at line 694 of file MSNet.h.

Constructor & Destructor Documentation

◆ TransportableStateListener()

MSNet::TransportableStateListener::TransportableStateListener ( )
inline

Constructor.

Definition at line 697 of file MSNet.h.

◆ ~TransportableStateListener()

virtual MSNet::TransportableStateListener::~TransportableStateListener ( )
inlinevirtual

Destructor.

Definition at line 700 of file MSNet.h.

Member Function Documentation

◆ transportableStateChanged()

virtual void MSNet::TransportableStateListener::transportableStateChanged ( const MSTransportable *const  transportable,
TransportableState  to,
const std::string &  info = "" 
)
pure virtual

Called if a transportable changes its state.

Parameters
[in]transportableThe transportable which changed its state
[in]toThe state the transportable has changed to
[in]infoAdditional information on the state change

Implemented in TraCIServer, and libsumo::Helper::TransportableStateListener.


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