Eclipse SUMO - Simulation of Urban MObility
CState Class Reference

#include <MSCModel_NonInteracting.h>

Collaboration diagram for CState:

Public Member Functions

SUMOTime computeTranshipTime (const MSEdge *prev, const MSContainer::MSContainerStage_Tranship &stage, SUMOTime currentTime)
 compute tranship time on edge and update state members More...
 
 CState ()
 
double getAngle (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const
 return the direction in which the container heading to More...
 
double getEdgePos (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const
 return the offset from the start of the current edge measured in its natural direction More...
 
Position getPosition (const MSContainer::MSContainerStage_Tranship &stage, SUMOTime now) const
 return the network coordinate of the container More...
 
double getSpeed (const MSContainer::MSContainerStage_Tranship &stage) const
 return the current speed of the container More...
 
 ~CState ()
 

Static Public Attributes

static const int BACKWARD
 
static const int FORWARD
 
static const double LATERAL_OFFSET
 the offset for computing container positions when being transhiped More...
 
static const int UNDEFINED_DIRECTION
 

Private Attributes

double myCurrentBeginPos
 
Position myCurrentBeginPosition
 
SUMOTime myCurrentDuration
 
double myCurrentEndPos
 
Position myCurrentEndPosition
 
SUMOTime myLastEntryTime
 

Detailed Description

Definition at line 91 of file MSCModel_NonInteracting.h.

Constructor & Destructor Documentation

◆ CState()

CState::CState ( )
inline

Definition at line 93 of file MSCModel_NonInteracting.h.

◆ ~CState()

CState::~CState ( )
inline

Definition at line 95 of file MSCModel_NonInteracting.h.

Member Function Documentation

◆ computeTranshipTime()

◆ getAngle()

double CState::getAngle ( const MSContainer::MSContainerStage_Tranship stage,
SUMOTime  now 
) const

return the direction in which the container heading to

Definition at line 117 of file MSCModel_NonInteracting.cpp.

References MSContainer::MSContainerStage_Tranship::getEdge(), MSTransportable::Stage::getEdgeAngle(), and M_PI.

◆ getEdgePos()

double CState::getEdgePos ( const MSContainer::MSContainerStage_Tranship stage,
SUMOTime  now 
) const

return the offset from the start of the current edge measured in its natural direction

Definition at line 103 of file MSCModel_NonInteracting.cpp.

◆ getPosition()

Position CState::getPosition ( const MSContainer::MSContainerStage_Tranship stage,
SUMOTime  now 
) const

◆ getSpeed()

double CState::getSpeed ( const MSContainer::MSContainerStage_Tranship stage) const

return the current speed of the container

Definition at line 127 of file MSCModel_NonInteracting.cpp.

References MSContainer::MSContainerStage_Tranship::getMaxSpeed().

Field Documentation

◆ BACKWARD

const int CState::BACKWARD
static

Definition at line 99 of file MSCModel_NonInteracting.h.

◆ FORWARD

const int CState::FORWARD
static

Definition at line 98 of file MSCModel_NonInteracting.h.

◆ LATERAL_OFFSET

const double CState::LATERAL_OFFSET
static

the offset for computing container positions when being transhiped

Definition at line 103 of file MSCModel_NonInteracting.h.

◆ myCurrentBeginPos

double CState::myCurrentBeginPos
private

Definition at line 120 of file MSCModel_NonInteracting.h.

◆ myCurrentBeginPosition

Position CState::myCurrentBeginPosition
private

Definition at line 122 of file MSCModel_NonInteracting.h.

◆ myCurrentDuration

SUMOTime CState::myCurrentDuration
private

Definition at line 119 of file MSCModel_NonInteracting.h.

◆ myCurrentEndPos

double CState::myCurrentEndPos
private

Definition at line 121 of file MSCModel_NonInteracting.h.

◆ myCurrentEndPosition

Position CState::myCurrentEndPosition
private

Definition at line 123 of file MSCModel_NonInteracting.h.

◆ myLastEntryTime

SUMOTime CState::myLastEntryTime
private

Definition at line 118 of file MSCModel_NonInteracting.h.

◆ UNDEFINED_DIRECTION

const int CState::UNDEFINED_DIRECTION
static

Definition at line 100 of file MSCModel_NonInteracting.h.


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