KADABRA API

LARA API

LARA Common Language API

(.js)
laraImport("kadabra.adapt.VersionTester");

(.lara)
import kadabra.adapt.VersionTester;

Aspects

NewVersionTester

Provides basic functionality to test versions by: <br>
adding a new timer, test time, best time, bestVersion, adapt, numRuns and warmup fields, <br>
creating basic code to start the adaptation after "numRuns" executions <br>
creating basic code to update after a given execution <br> <br>
must invoke methods "onNewVersion", "ifBetterVersion" and "beforeUpdate" before injecting the adaptation <br>
must insert the following variables: adapt(), update(), timerStart, timerStop


Inputs

$class: any
targetType: any
timeUnit: any (optional)
numRuns: any (optional)
warmup: any (optional)
onInitializeCode: any (optional)
onFinalizeCode: any (optional)
jumpIfWorse: any (optional)

Outputs

$tester: any
testTime: any
bestTime: any
bestVersion: any
testPos: any
bestPos: any
onInitialize: any
onFinalize: any
setTests: any
timerStart: any
timerStop: any
getTime: any
start: any
pause: any
stop: any
update: any
timerStopAndUpdate: any
isAdapting: any
hasFinished: any

VersionTester

Inputs

$class: any
targetType: any
targetFieldRef: any
numRuns: any (optional)
timeUnit: any (optional)
warmup: any (optional)
jumpIfWorse: any (optional)

Outputs

$testTime: any
$bestTime: any
$bestVersion: any
$numRuns: any
$improved: any (optional)
ifBetterVersion: any
onNewVersion: any
beforeUpdate: any
onInitialize: any
timerStart: any
timerStop: any
getTime: any
adapt: any
update: any
start: any
stop: any
pause: any
isAdapting: any