8.9.10. MDOPsdVar

MDOPsdVar

Represent a PSD variable in MindOpt application

Methods

get

Retrieve the int attribute value owned by a PSD variable by its name

get

Retrieve a String attribute value owned by a PSD variable by its name

get

Retrieve the matrix attribute value owned by the PSD variable by its name

index

Retrieve the index of this PSD variable

sameAs

Test whether this PSD variable is the same as another

set

Set the value of the int attribute owned by the PSD variable

set

Set the value of the String attribute owned by the PSD variable

set

Set the value of the matrix attribute owned by the PSD variable

toString

Convert the current PSD variable to a string

int get(MDO.IntAttr attr)

Retrieve the int attribute value owned by a PSD variable by its name

Parameters

MDO.IntAttr attr – Attribute name

Returns

Attribute value

String get(MDO.StringAttr attr)

Retrieve a String attribute value owned by a PSD variable by its name

Parameters

MDO.StringAttr attr – Attribute name

Returns

Attribute value

MDOMatrix get(MDO.MatAttr attr)

Retrieve the matrix attribute value owned by the PSD variable by its name

Parameters

MDO.MatAttr attr – Attribute name

Returns

Attribute value

int index()

Retrieve the index of this PSD variable

Returns

Index of this PSD variable

bool sameAs(MDOPsdVar v2)

Test whether this PSD variable is the same as another

Parameters

MDOPsdVar v2 – PSD variable to compare

Returns

True if the two are the same

void set(MDO.IntAttr attr, int value)

Set the value of the int attribute owned by the PSD variable.

Parameters
  • MDO.IntAttr attr – Attribute name

  • int value – The new value to be set.

void set(MDO.StringAttr attr, String value)

Set the value of the String attribute owned by the PSD variable.

Parameters
  • MDO.StringAttr attr – Attribute name

  • String value – The new value to be set.

void set(MDO.MatAttr attr, MDOMatrix value)

Set the value of the matrix attribute owned by the PSD variable.

Parameters
  • MDO.MatAttr attr – Attribute name

  • MDOMatrix value – The new value to be set.

String toString()

Convert the current PSD variable to a string.

Returns

The string format of the PSD variable.