Initializing help system before first use

XPRMSet Class

A set in Mosel.
Inheritance Hierarchy
SystemObject
   MoselXPRMObjectBase
     MoselXPRMTypedObject
       MoselXPRMValue
         MoselXPRMSet

Namespace:   Mosel
Assembly:  xprmdn (in xprmdn.dll) Version: 0.0.0.0
Syntax
C#
public class XPRMSet : XPRMValue

The XPRMSet type exposes the following members.

Properties
  Name Description
Public property FirstIndex
The index of the first element in the set. From the library, set elements are accessed using an index.
Public property IsDynamic
Check whether the set is dynamic.
Public property IsEmpty
Check whether the set is empty.
Public property IsFixed
Check whether the set is fixed. A dynamic set is "fixed" when it is used to index an array: it may be extended by receiving new elements but it cannot be re-assigned or reduced.
Public property IsInitialised
Check whether the set has been initialised. Objects are initialised during model execution. Trying to access a Mosel object that has not been created will result on an exception.
(Overrides XPRMValueIsInitialised.)
Public property IsRange
Check whether the set is a range set.
Public property LastIndex
The index of the last element in the set. From the library, set elements are accessed using an index.
Public property 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.)
Public property Owner
Used to fetch the XPRM object to which this object belongs
(Inherited from XPRMObjectBase.)
Public property Size
Get set size.
Public property StructCode (Inherited from XPRMTypedObject.)
Public property StructName (Inherited from XPRMTypedObject.)
Public property Type (Overrides XPRMTypedObjectType.)
Public property TypeCode (Inherited from XPRMTypedObject.)
Public property TypeName (Inherited from XPRMTypedObject.)
Top
Methods
  Name Description
Public method AsArray
An array type value. This function is defined if the actual object is of a array type.
(Inherited from XPRMValue.)
Public method AsBoolean
A Boolean. This function is defined if the actual object is a Boolean
(Inherited from XPRMValue.)
Public method AsExternal
An external type value. This function is defined if the actual object is of an external type.
(Inherited from XPRMValue.)
Public method AsInteger
An integer. This function is defined if the actual object is an integer.
(Inherited from XPRMValue.)
Public method AsLinCtr
A linear constraint. This function is defined if the actual object is a linear constraint.
(Inherited from XPRMValue.)
Public method AsList
A list type value. This function is defined if the actual object is of a list type.
(Inherited from XPRMValue.)
Public method AsMPVar
A decision variable. This function is defined if the actual object is a decision variable.
(Inherited from XPRMValue.)
Public method AsProblem
A problem. This function is defined if the actual object is a problem.
(Inherited from XPRMValue.)
Public method AsReal
A real. This function is defined if the actual object is a real.
(Inherited from XPRMValue.)
Public method AsRecord
A record type value. This function is defined if the actual object is of a record type.
(Inherited from XPRMValue.)
Public method AsSet
A set type value. This function is defined if the actual object is of a set type.
(Overrides XPRMValueAsSet.)
Public method AsString
A string. This function is defined if the actual object is a string.
(Inherited from XPRMValue.)
Public method AsUnion
A union type value. This function is defined if the actual object is of a union type.
(Inherited from XPRMValue.)
Public method Equals (Overrides ObjectEquals(Object).)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method Get
Get the element associated to the given index. Throws an exception if the index corresponds to no element in the set
Public method GetAsBoolean
Get the element associated to the given index (set of booleans). Throws an exception if this is not a set of booleans.
Public method GetAsInteger
Get the element associated to the given index (set of integers). Throws an exception if this is not a set of integers.
Public method GetAsReal
Get the element associated to the given index (set of reals). Throws an exception if this is not a set of reals.
Public method GetAsString
Get the element associated to the given index (set of strings). Throws an exception if this is not a set of strings .
Public method GetHashCode (Overrides ObjectGetHashCode.)
Public method GetIndex(Boolean)
Get the index of the given element (set of Booleans). Throws an exception if this set does not contain booleans
Public method GetIndex(Double)
Get the index of the given element (set of reals). Throws an exception if this set does not contain reals.
Public method GetIndex(Int32)
Get the index of the given element (set of integers). Throws an exception if this set does not contain integers.
Public method GetIndex(String)
Get the index of the given element (set of strings). Throws an exception if this set does not contain strings.
Public method GetIndex(XPRMValue)
Get the index of the given element.
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Public method GetValues
Returns an array of XPRMValue objects containing the members of this set
Public method GetValuesAsIntegers
Returns an array containing the elements of a set of integers. Throws an exception if this is not a set of integers
Public method GetValuesAsReals
Returns an array containing the elements of a set of floating point numbers. Throws an exception if this is not a set of floating point numbers.
Public method GetValuesAsStrings
Returns an array containing the elements of a set of strings. Throws an exception if this is not a set of strings .
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method ToString
Generate a string representation of the content of the set.
(Overrides XPRMTypedObjectToString.)
Top
See Also

Reference

© 2001-2021 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.