PyANGKernel.GKController¶
- class GKController¶
A device used to group network equipment: signal groups, VMS’s, ramp meter devices and detectors together. The Aimsun Controller contains all the parameters needed to emulate a real world controller through the communication with an external application to provide the control logic.
Synopsis¶
Methods¶
def
__init__()def
addDetector()def
addSignalGroup()def
clearDetectors()def
createDetector()def
getDetectors()def
getMeterings()def
getParameters()def
getState()def
isEnabled()def
removeDetector()def
setIsEnabled()def
setParameters()def
setState()
Static functions¶
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- class GKControllerType¶
The different types of controllers that Aimsun Next can emulate are: SCATS, SCATSRMS, UTOPIA, VSPLUS, SICE, Yunex UTC (with SCOOT), ETRA, Indra, TELVENT, TELENT and LISA. Aimsun Next will be able to communicate with any of these traffic control systems or traffic management software
- class GKControllerState¶
Controller state: - eNormal: no simulation is running. - eConnected: a simulation is running and the controller is connected. - eDisconnected: a simulation is running and the controller is not connected as the communication has failed.
- __init__()¶
- addDetector(sg)¶
- Parameters:
sg –
GKControllerDetector
Adds a detector to this controller. The object is adopted.
- addPedestrianWalk(sg)¶
- Parameters:
Adds a pedestrian walk to this controller. The object is adopted.
- addSignalGroup(sg)¶
- Parameters:
Adds a signal group to this controller. The object is adopted.
- clearDetectors()¶
Removes all detectors from this controller. The objects are deleted.
- clearPedestrianWalks()¶
Removes all pedestrian walks from this controller. The objects are deleted.
- clearSignalGroups()¶
Removes all signal groups from this controller. The objects are deleted.
- createDetector()¶
- Return type:
Creates a detector to be add later on in this controller using
addDetector- static createParameters(controllerType)¶
- Parameters:
controllerType –
GKControllerType- Return type:
- createPedestrianWalk()¶
- Return type:
Creates a pedestrian walk to be add later on in this controller using
addPedestrianWalk- createSignalGroup()¶
- Return type:
Creates a signal group to be add later on in this controller using
addSignalGroup- getControllerType()¶
- Return type:
Returns the type of this controller among the different types of controllers that Aimsun Next can emulate. Aimsun Next will be able to communicate with any of these traffic control systems or traffic management software
- getDetectors()¶
- Return type:
.list of GKControllerDetector
List all the detectors in this controller.
- getMeterings()¶
- Return type:
.list of GKMetering
List all the meterings in this controller.
- getParameters()¶
- Return type:
Gets the controller parameters based on its type. For controllers eSCATS, eSCATSRMS, eSICE,
eIndraandeDummyit will return aGKControllerParsobject. For controllers eUTOPIA it will return aGKControllerParsUTOPIAobject. For controllers eVSPLUS and eZGZPRIO it will return aGKControllerParsVSPLUSobject. For controllers eETRA it will return aGKControllerParsETRAobject. For controllers eTELVENT it will return a GKControllerParsTelvent object. For controllers eTELENT it will return aGKControllerParsTelentobject. For controllers eSCOOT it will return aGKControllerParsTelentobject. For controllers eLISAPLUS it will return a GKControllerParsLISAPlus object.- getPedestrianWalks()¶
- Return type:
.list of GKControllerPedestrianWalk
List all the pedestrian walk in this controller.
Returns a list containing all the nodes belonging to the associated signal groups, plus all the nodes which are origin or destination of any of the pedestrian walks associated with the controller.
Returns a list containing all the sections which the detectors associated with the controller it belongs to.
When drawing, show the connections?
- getSignalGroups()¶
- Return type:
.list of GKControllerSignalGroup
List all the signal groups in this controller.
- getState()¶
- Return type:
The controller state. UnknownCommand
GKControllerState- hasExternalControl(plan)¶
- Parameters:
plan –
GKMasterControlPlan- Return type:
Returns true if the controller has an External Control or Actuated defined in any item of the given master control plan.
Returns true if the controller is Enabled.
See also
- static isOCITControllerType(type)¶
- Parameters:
type –
GKControllerType- Return type:
- removeDetector(sg)¶
- Parameters:
sg –
GKControllerDetector
Removes a detector from this controller. The object is deleted.
- removePedestrianWalk(sg)¶
- Parameters:
Removes a pedestrian walk from this controller. The object is deleted.
- removeSignalGroup(sg)¶
- Parameters:
Removes a signal group from this controller. The object is deleted.
- setControllerType(atype)¶
- Parameters:
atype –
GKControllerType
Sets the type of this controller among the different types of controllers that Aimsun Next can emulate. Aimsun Next will be able to communicate with any of these traffic control systems or traffic management software
- setIsEnabled(aIsEnabled)¶
- Parameters:
aIsEnabled – bool
Set if the controller is Enabled.
See also
- setParameters(pars)¶
- Parameters:
pars –
GKControllerPars
Sets the controller parameters based on its type. Be sure that pars parameter has the correct type as set by
setControllerType, that are: For controllers eSCATS, eSCATSRMS, eSICE,eIndraandeDummyaGKControllerParsobject. For controllers eUTOPIA aGKControllerParsUTOPIAobject. For controllers eVSPLUS and eZGZPRIO aGKControllerParsVSPLUSobject. For controllers eETRA aGKControllerParsETRAobject. For controllers eTELVENT a GKControllerParsTelvent object. For controllers eTELENT aGKControllerParsTelentobject. For controllers eSCOOT aGKControllerParsTelentobject. For controllers eLISAPLUS a GKControllerParsLISAPlus object.The pars object is copied.
- setShowConnections(value)¶
- Parameters:
value – bool
When drawing, show the connections?
- setState(astate)¶
- Parameters:
astate –
GKControllerState
The controller state. UnknownCommand
GKControllerState