PyANGKernel.GKPolicy

class GKPolicy

Inheritance diagram of PyANGKernel.GKPolicy

Inherited by: GKTrafficCondition

Synopsis

Methods

Virtual methods

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

Detailed Description

A collection of traffic management actions that are applied at the same time (usually because they are part of a single conceptual action).

__init__()
addChange(change)
Parameters:

changeGKScenarioChange

Add a traffic management action. The pointer is adopted.

applyToWarmUp()
Return type:

bool

getAuthority()
Return type:

GKAuthority

An optional authority that must authorize this policy.

getChanges()
Return type:

GKFolder

The list of actions.

getPeriodicCallTimes(aSimInitialTime, aSimDurationTime, aWarmUpPeriod)
Parameters:
  • aSimInitialTime – float

  • aSimDurationTime – float

  • aWarmUpPeriod – float

Return type:

.std.pairdouble,double

getPeriodicIncidentTimes(aSimInitialTime, aSimDurationTime, aWarmUpPeriod)
Parameters:
  • aSimInitialTime – float

  • aSimDurationTime – float

  • aWarmUpPeriod – float

Return type:

.std.pairdouble,double

getStrategy()
Return type:

GKStrategy

The strategy where this policy is. Set by the strategy.

isActiveAt(timeFilter)
Parameters:

timeFilterQTime

Return type:

bool

Returns true if the policy is active at the given time.

removeChange(change)
Parameters:

changeGKScenarioChange

Removes a traffic management action. The pointer is not deleted.

setApplyToWarmUp(apply)
Parameters:

apply – bool

setAuthority(aauthority)
Parameters:

aauthorityGKAuthority

An optional authority that must authorize this policy.

setStrategy(astrategy)
Parameters:

astrategyGKStrategy

The strategy where this policy is. Set by the strategy.

willBeStarted(where)
Parameters:

whereGKExperiment

Return type:

bool

willBeStoped(where)
Parameters:

whereGKExperiment

Return type:

bool