|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FiniteVariable
A class for representing finite variables. It consists of a name as well as a list of possible values.
Method Summary | |
---|---|
boolean |
contains(Object instance)
|
CPTShell |
getCPTShell()
|
CPTShell |
getCPTShell(DSLNodeType type)
|
DSLNodeType |
getDSLNodeType()
moved from DSLNode 010905 |
int |
grep(Filter filter,
Collection results)
|
int |
grep(Matcher matcher,
boolean invert,
Collection results)
|
int |
grep(Pattern pattern,
boolean invert,
Collection results)
|
int |
index(Object instance)
Returns the index associated with the instance. |
boolean |
insert(int index,
Object instance)
|
Object |
instance(int index)
Returns the instance associated with the index. |
Object |
instance(String name)
|
List |
instances()
|
Object |
remove(int index)
|
Object |
set(int index,
Object objNew)
|
void |
setCPTShell(CPTShell shell)
Deprecated. |
void |
setCPTShell(DSLNodeType type,
CPTShell shell)
|
void |
setDSLNodeType(DSLNodeType newVal)
moved from DSLNode 010905 |
int |
size()
Returns the number of possible values. |
Methods inherited from interface Variable |
---|
clone, delete, getEnumProperties, getID, getProperty, getUserObject, setID, setProperty, setUserObject |
Methods inherited from interface Comparable |
---|
compareTo |
Method Detail |
---|
int size()
Object instance(int index)
int index(Object instance)
boolean contains(Object instance)
Object instance(String name)
instance
in interface Variable
int grep(Filter filter, Collection results)
results
- accumulate matches
int grep(Pattern pattern, boolean invert, Collection results)
invert
- invert the sense of the grep, i.e. accumulate non-matchesresults
- accumulate matches
int grep(Matcher matcher, boolean invert, Collection results)
invert
- invert the sense of the grep, i.e. accumulate non-matchesresults
- accumulate matches
List instances()
Object set(int index, Object objNew)
boolean insert(int index, Object instance)
Object remove(int index)
DSLNodeType getDSLNodeType()
void setDSLNodeType(DSLNodeType newVal)
CPTShell getCPTShell()
void setCPTShell(CPTShell shell)
CPTShell getCPTShell(DSLNodeType type)
void setCPTShell(DSLNodeType type, CPTShell shell)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |