public class CmplSet
extends java.lang.Object
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
public CmplSet(java.lang.String name, int rank) throws CmplException
name
- name of the setrank
- rank of the setCmplException
public CmplSet(java.lang.String name) throws CmplException
name
- name of the setCmplException
public java.lang.String name()
public int type()
public int rank()
public int len() throws CmplException
CmplException
public java.lang.Object get(int i) throws CmplException
i
- positionCmplException
public java.lang.Object get(int i, int j) throws CmplException
i
- position in the tuple list|arrayj
- position in the tupleCmplException
public void setValues(java.lang.Object val) throws CmplException
val
- value list|arrayCmplException
public void setValues(int val1, int val2) throws CmplException
val1
- startNumberval2
- endNumberCmplException
public void setValues(int val1, int val2, int val3) throws CmplException
val1
- startNumberval2
- stepval3
- endNumberCmplException
public int valType()
public java.lang.Object values()