|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectjCMPL.CmplSet
public class CmplSet
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 |
---|
public CmplSet(java.lang.String name, int rank) throws CmplException
name
- name of the setrank
- rank of the set
CmplException
public CmplSet(java.lang.String name) throws CmplException
name
- name of the set
CmplException
Method Detail |
---|
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
- position
CmplException
public java.lang.Object get(int i, int j) throws CmplException
i
- position in the tuple list|arrayj
- position in the tuple
CmplException
public void setValues(java.lang.Object val) throws CmplException
val
- value list|array
CmplException
public void setValues(int val1, int val2) throws CmplException
val1
- startNumberval2
- endNumber
CmplException
public void setValues(int val1, int val2, int val3) throws CmplException
val1
- startNumberval2
- stepval3
- endNumber
CmplException
public int valType()
public java.lang.Object values()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |