XPRMValue Class
A value (of any type) stored in Mosel. Depending on the type, one of the as* function is defined and gives access to the corresponding .NET object.

Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 5.0.2.0

C#
public abstract class XPRMValue : XPRMTypedObject
The XPRMValue type exposes the following members.

Name | Description | |
---|---|---|
![]() |
IsInitialised |
Checks whether this value is initialized
|
![]() |
Model |
Used to fetch the XPRM model to which this object belongs, or else 'null' if there is no model anywhere among this Object's ancestors.
(Inherited from XPRMObjectBase.) |
![]() |
Owner |
Used to fetch the XPRM object to which this object belongs
(Inherited from XPRMObjectBase.) |
![]() |
StructCode | (Inherited from XPRMTypedObject.) |
![]() |
StructName | (Inherited from XPRMTypedObject.) |
![]() |
Type | (Inherited from XPRMTypedObject.) |
![]() |
TypeCode | (Inherited from XPRMTypedObject.) |
![]() |
TypeName | (Inherited from XPRMTypedObject.) |

Name | Description | |
---|---|---|
![]() |
AsArray |
An array type value. This function is defined if the actual object is of a array type.
|
![]() |
AsBoolean |
A Boolean. This function is defined if the actual object is a Boolean
|
![]() |
AsExternal |
An external type value. This function is defined if the actual object is of an external type.
|
![]() |
AsInteger |
An integer. This function is defined if the actual object is an integer.
|
![]() |
AsLinCtr |
A linear constraint. This function is defined if the actual object is a linear constraint.
|
![]() |
AsList |
A list type value. This function is defined if the actual object is of a list type.
|
![]() |
AsMPVar |
A decision variable. This function is defined if the actual object is a decision variable.
|
![]() |
AsProblem |
A problem. This function is defined if the actual object is a problem.
|
![]() |
AsReal |
A real. This function is defined if the actual object is a real.
|
![]() |
AsRecord |
A record type value. This function is defined if the actual object is of a record type.
|
![]() |
AsSet |
A set type value. This function is defined if the actual object is of a set type.
|
![]() |
AsString |
A string. This function is defined if the actual object is a string.
|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType |
Gets the type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current
Object.
(Inherited from Object.) |
![]() |
ToString |
Returns a default string representation of the identifier
(Inherited from XPRMTypedObject.) |

Reference
