|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--jtp.frame.vc.ValueCollection
ValueCollection.java Created: Mon Mar 15 02:52:57 1999
Field Summary | |
protected Map |
valueMap
The set of direct values in this collection, that is, those not included from another VC |
Constructor Summary | |
ValueCollection()
creates a new empty Value Collection, with a 10-element HashSet for directValues. |
Method Summary | |
boolean |
add(Object o)
adds a value to directValues |
boolean |
add(Object o,
ReasoningStep proof)
|
void |
addValueCollectionListener(ValueCollectionListener vcl)
|
boolean |
contains(Object o)
tests if the supplied parameter is present as either direct or included value in this collection. |
Set |
directValues()
an accessor function to the directValues instance variable. |
Collection |
getInputLinks()
returns the collection of objects of type ValueLink that represent included collections. |
Object |
getMembershipGoal(Object value)
|
String |
getMembershipString(Object o)
|
abstract Collection |
getOutputLinks()
|
ReasoningStep |
getProof(Object o)
|
ValueCollectionListener |
getVCListener()
|
boolean |
isEmpty()
tests the Value Collection for being empty. |
Iterator |
iterator()
Returns the iterator over all values in this collection, both direct and included |
boolean |
remove(Object o)
removes a value from valueMap |
void |
removeValueCollectionListener(ValueCollectionListener vcl)
|
void |
setInputLinks(Collection c)
|
abstract void |
setOutputLinks(Collection c)
|
void |
setProof(Object o,
ReasoningStep proof)
|
int |
size()
Calculates the size of this VC by adding the size of directValues to the sizes of all included collections (collections included more than once are only counted once.) |
String |
toString()
creates a string representation of this value collection; values are listed. |
boolean |
valueIsInferred(Object o)
|
Methods inherited from class java.util.AbstractCollection |
addAll, clear, containsAll, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Collection |
equals, hashCode |
Field Detail |
protected Map valueMap
Constructor Detail |
public ValueCollection()
Method Detail |
public String toString()
toString
in class AbstractCollection
public boolean add(Object o)
add
in interface Collection
add
in class AbstractCollection
public boolean add(Object o, ReasoningStep proof)
public void setProof(Object o, ReasoningStep proof)
public boolean remove(Object o)
remove
in interface Collection
remove
in class AbstractCollection
public int size()
size
in interface Collection
size
in class AbstractCollection
public Iterator iterator()
iterator
in interface Collection
iterator
in class AbstractCollection
public boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in class AbstractCollection
public boolean contains(Object o)
contains
in interface Collection
contains
in class AbstractCollection
o
- a value to look for
public Set directValues()
public Collection getInputLinks()
public void setInputLinks(Collection c)
public abstract Collection getOutputLinks()
public abstract void setOutputLinks(Collection c)
public ReasoningStep getProof(Object o)
public boolean valueIsInferred(Object o)
public String getMembershipString(Object o)
public Object getMembershipGoal(Object value)
public ValueCollectionListener getVCListener()
public void addValueCollectionListener(ValueCollectionListener vcl)
public void removeValueCollectionListener(ValueCollectionListener vcl)
|
JTP API Documentation | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |