|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractCollection java.util.AbstractSet java.util.HashSet java.util.LinkedHashSet edu.ksu.cis.bnj.bbn.BBNDiscreteValue
Set of possible discrete values of a node. E.g.: { yes, no } or { hot, warm, cool, cold }. Essentially a HashSet. We already have contains method, so no need to reimplement anything.
Constructor Summary | |
BBNDiscreteValue()
Inherited constructor for BBNDiscreteValue. |
|
BBNDiscreteValue(java.util.Collection c)
A shortcut, simply to allow easy cloning |
|
BBNDiscreteValue(int arg0)
Inherited constructor for BBNDiscreteValue. |
|
BBNDiscreteValue(int arg0,
float arg1)
Inherited constructor for BBNDiscreteValue. |
|
BBNDiscreteValue(java.lang.Object[] c)
A shortcut, simply to allow easy cloning |
Method Summary | |
java.lang.Object |
clone()
Simple cloning |
boolean |
equals(java.lang.Object o)
Simple equals |
int |
getArity()
A convenience alias to get the arity of the code. |
Methods inherited from class java.util.HashSet |
add, clear, contains, isEmpty, iterator, remove, size |
Methods inherited from class java.util.AbstractSet |
hashCode, removeAll |
Methods inherited from class java.util.AbstractCollection |
addAll, containsAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.ksu.cis.bnj.bbn.BBNValue |
contains |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
public BBNDiscreteValue()
public BBNDiscreteValue(int arg0, float arg1)
arg0
- arg1
- public BBNDiscreteValue(int arg0)
arg0
- public BBNDiscreteValue(java.util.Collection c)
HashSet.HashSet(Collection)
public BBNDiscreteValue(java.lang.Object[] c)
c
- Method Detail |
public int getArity()
public java.lang.Object clone()
clone
in interface BBNValue
Object.clone()
public boolean equals(java.lang.Object o)
equals
in interface java.util.Set
Object.equals(Object)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |