Basic Boundary Relocator

class pypdevs.relocators.basicBoundaryRelocator.BasicBoundaryRelocator(swappiness)[source]

Basic implementation of a boundary relocator

__init__(swappiness)[source]

Constructor

Parameters

swappiness – the swappiness

getRelocations(gvt, activities, horizon)[source]

Return all pending relocations

Parameters
  • gvt – current GVT

  • activities – activities being passed on the GVT ring

  • horizon – the time over which the activities were gathered

Returns

all relocations that should be executed

setController(controller)[source]

Configures the controller of this relocator

Parameters

controller – the controller

useLastStateOnly()[source]

Determines whether or not the activities of all steps should be accumulated, or only a single state should be used.

Returns

boolean – True if the relocator works with a single state