Click or drag to resize

XPRBsossetDir(Int32, Double) Method

Set an XPRBsos directive.

Namespace: BCL
Assembly: xprbdn (in xprbdn.dll) Version: 47.01.01+0ba4e76731516b80760698bbaa939494dae84e49
Syntax
public int setDir(
	int type,
	double val
)

Parameters

type  Int32
The type of directive. Possible values:
  • BCLconstant.XPRB.PR – Priority.
  • BCLconstant.XPRB.UP – First branch upwards.
  • BCLconstant.XPRB.DN – First branch downwards.
  • BCLconstant.XPRB.PU – Pseudocost on branching upwards.
  • BCLconstant.XPRB.PD – Pseudocost on branching downwards.
val  Double
The value of this argument depends on the type of directive to be defined. Possible values:
  • XPRB.PR – priority value, integer between 1 (highest) and 1000 (least priority, default value).
  • XPRB.UP, XPRB.DN – no input required, choose any dummy value (e.g. 0).
  • XPRB.PU, XPRB.PD – value of pseudocost for the corresponding branch.

Return Value

Int32
0 on success.
Example
xbexpl1.cs in the User's Guide Examples folder shows an overload of this method.
See Also