jCMPL
Class CmplSet

java.lang.Object
  extended by jCMPL.CmplSet

public class CmplSet
extends java.lang.Object

Handling of CMPL sets in jCMPL


Constructor Summary
CmplSet(java.lang.String name)
          Constructor for a set with rank=1
CmplSet(java.lang.String name, int rank)
          Constructor for a set with rank
 
Method Summary
 java.lang.Object get(int i)
          Returns the indexing entry at a given position
 java.lang.Object get(int i, int j)
          Returns the indexing entry at a given position
 int len()
          Length of the set
 java.lang.String name()
          Name of the set
 int rank()
          Rank of the set
 void setValues(int val1, int val2)
          Defines the values of an algorithmic set (startNumber, startNumber+1, ..., endNumber)
 void setValues(int val1, int val2, int val3)
          Defines the values of an algorithmic set (startNumber, startNumber+step, ..., endNumber)
 void setValues(java.lang.Object val)
          Defines the values of an enumeration set For a set of n-tuples with n=1 - list|array of single indexing entries For a set of n-tuples with n>1 - list|array of list(s) that contain tuples
 int type()
          Returns the type of the set
 int valType()
          Returns valType
 java.lang.Object values()
          List|Array of the indexing entries of the set List|Array of single indexing entries for a set of n-tuples with n=1 List|Array of tuple(s) - for a set of n-tuples with n>1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmplSet

public CmplSet(java.lang.String name,
               int rank)
        throws CmplException
Constructor for a set with rank

Parameters:
name - name of the set
rank - rank of the set
Throws:
CmplException

CmplSet

public CmplSet(java.lang.String name)
        throws CmplException
Constructor for a set with rank=1

Parameters:
name - name of the set
Throws:
CmplException
Method Detail

name

public java.lang.String name()
Name of the set

Returns:
name of the CMPL set (not the name of the CmplSet object)

type

public int type()
Returns the type of the set

Returns:
type

rank

public int rank()
Rank of the set

Returns:
number of n of a n-tuple set

len

public int len()
        throws CmplException
Length of the set

Returns:
number of indexing entries
Throws:
CmplException

get

public java.lang.Object get(int i)
                     throws CmplException
Returns the indexing entry at a given position

Parameters:
i - position
Returns:
Object of the indexing entry
Throws:
CmplException

get

public java.lang.Object get(int i,
                            int j)
                     throws CmplException
Returns the indexing entry at a given position

Parameters:
i - position in the tuple list|array
j - position in the tuple
Returns:
Object of the indexing entry
Throws:
CmplException

setValues

public void setValues(java.lang.Object val)
               throws CmplException
Defines the values of an enumeration set For a set of n-tuples with n=1 - list|array of single indexing entries For a set of n-tuples with n>1 - list|array of list(s) that contain tuples

Parameters:
val - value list|array
Throws:
CmplException

setValues

public void setValues(int val1,
                      int val2)
               throws CmplException
Defines the values of an algorithmic set (startNumber, startNumber+1, ..., endNumber)

Parameters:
val1 - startNumber
val2 - endNumber
Throws:
CmplException

setValues

public void setValues(int val1,
                      int val2,
                      int val3)
               throws CmplException
Defines the values of an algorithmic set (startNumber, startNumber+step, ..., endNumber)

Parameters:
val1 - startNumber
val2 - step
val3 - endNumber
Throws:
CmplException

valType

public int valType()
Returns valType


values

public java.lang.Object values()
List|Array of the indexing entries of the set List|Array of single indexing entries for a set of n-tuples with n=1 List|Array of tuple(s) - for a set of n-tuples with n>1

Returns:
List|Array of the indexing entries