Logo GenPRES

SetCommand Module

Decides what a choice on an order variable runs: no command, a command that sets only the value, or a recipe before the value.

Functions and values

Function or value Description

ofSet ovarRef sch shape choice

Full Usage: ofSet ovarRef sch shape choice

Parameters:
Returns: SetCommand

Returns the set command for a choice on a variable with the given shape. A step on a variable that is not steppable gives no command. A step on the frequency, the dose quantity, the dose rate or a component orderable quantity, and a percentile of the dose quantity, run a recipe that first sets back the variables that depend on the set variable, so they follow the new value. A min, max, median or nth sets only the value: from a list on any variable, from a range only on a basic variable. On a steppable or not settable variable it also sets only the value, and Choice.select then refuses it. On a continuous schedule a min, max or median of the dose quantity gives no command, because the dose quantity is not basic there and the rate has its own choices.

ovarRef : OrderVariableReference
sch : Schedule
shape : Shape
choice : Choice
Returns: SetCommand

settable sch ovarRef ovar

Full Usage: settable sch ovarRef ovar

Parameters:
Returns: Shape

Returns the shape of the variable, but NotSettable for a steppable variable that is not basic for the schedule. A list is selectable. A range gives a value through ofSet only on a basic variable, because the range of a derived variable can hold values that no complete order reaches.

sch : Schedule
ovarRef : OrderVariableReference
ovar : OrderVariable
Returns: Shape

Type something to start searching.