PyMacroPTPlugin.MacroPTExperimentParams

class MacroPTExperimentParams

The MacroPTExperimentParams class

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

__init__()
clone()
Return type:

MacroPTExperimentParams

dwellTimeFunction()
Return type:

GKFunctionCost

Get the dwell time cost function.

getTransferPenalty()
Return type:

GKFunctionCost

Get the transfer penalty.

globalFare()
Return type:

float

Get the global fare.

See also

setGlobalFare()

internalName()
Return type:

str

isMultiRouting()
Return type:

bool

Get multi-routing.

maxIterations()
Return type:

int

Get maximum number of iterations.

rGap()
Return type:

float

Get relative gap.

See also

setRGap()

setDwellTimeFunction(aFunction)
Parameters:

aFunctionGKFunctionCost

Set the dwell time cost function.

setExperiment(experiment)
Parameters:

experimentMacroPTExperiment

Set the experiment

setGlobalFare(iValue)
Parameters:

iValue – float

Set the global fare.

See also

globalFare()

setIsMultiRouting(iValue)
Parameters:

iValue – bool

Set multi-routing.

See also

isMultiRouting()

setMaxIterations(iValue)
Parameters:

iValue – int

Set maximum number of iterations.

See also

maxIterations()

setRGap(iValue)
Parameters:

iValue – float

Set relative gap.

See also

rGap()

setTransferPenalty(function)
Parameters:

functionGKFunctionCost

Set the transfer penalty.

setUseFlatFare(iValue)
Parameters:

iValue – bool

Set whether to apply fat fare or not.

See also

useFlatFare()

setWalkingOnlyAllowed(allowed)
Parameters:

allowed – bool

Set walking-only allowed.

setWalkingOnlyFunction(aFunction)
Parameters:

aFunctionGKFunctionCost

Set the walking-only cost function.

useFlatFare()
Return type:

bool

Get whether to apply fat fare or not.

See also

setUseFlatFare()

walkingOnlyAllowed()
Return type:

bool

Get walking-only allowed.

walkingOnlyFunction()
Return type:

GKFunctionCost

Get the walking-only cost function.