JTP API Documentation

jtp.frame
Class SlotValueCollection

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--jtp.frame.vc.ValueCollection
              |
              +--jtp.frame.SlotValueCollection
All Implemented Interfaces:
Collection, Serializable

public class SlotValueCollection
extends ValueCollection

SlotValueCollection.java Created: Mon Mar 15 18:22:10 1999

See Also:
Serialized Form

Field Summary
protected  Symbol facet
           
protected  Object frame
           
protected  boolean inverse
           
protected  Collection links
           
protected  Collection outLinks
           
protected  Symbol slot
           
 
Fields inherited from class jtp.frame.vc.ValueCollection
valueMap
 
Constructor Summary
SlotValueCollection(Symbol facet, Symbol slot, Object frame, boolean inverse)
           
 
Method Summary
static Literal formLiteral(Symbol facet, Symbol slot, Object frame, Object value, boolean inverse)
           
 Symbol getFacet()
           
 Object getFrame()
           
 Collection getInputLinks()
          returns the collection of objects of type ValueLink that represent included collections.
 Object getMembershipGoal(Object value)
           
 String getMembershipString(Object o)
           
 Collection getOutputLinks()
           
 Symbol getSlot()
           
 boolean isInverse()
           
 void setInputLinks(Collection c)
           
 void setOutputLinks(Collection c)
           
 String toString()
          creates a string representation of this value collection; values are listed.
 
Methods inherited from class jtp.frame.vc.ValueCollection
add, add, addValueCollectionListener, contains, directValues, getProof, getVCListener, isEmpty, iterator, remove, removeValueCollectionListener, setProof, size, valueIsInferred
 
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

facet

protected Symbol facet

slot

protected Symbol slot

frame

protected Object frame

links

protected Collection links

outLinks

protected Collection outLinks

inverse

protected boolean inverse
Constructor Detail

SlotValueCollection

public SlotValueCollection(Symbol facet,
                           Symbol slot,
                           Object frame,
                           boolean inverse)
Method Detail

getSlot

public Symbol getSlot()

getFrame

public Object getFrame()

getFacet

public Symbol getFacet()

isInverse

public boolean isInverse()

toString

public String toString()
Description copied from class: ValueCollection
creates a string representation of this value collection; values are listed.

Overrides:
toString in class ValueCollection

getInputLinks

public Collection getInputLinks()
Description copied from class: ValueCollection
returns the collection of objects of type ValueLink that represent included collections. Should be overridden by value collections that include others.

Overrides:
getInputLinks in class ValueCollection
Returns:
this base version returns Collections.EMPTY_SET

setInputLinks

public void setInputLinks(Collection c)
Overrides:
setInputLinks in class ValueCollection

getOutputLinks

public Collection getOutputLinks()
Specified by:
getOutputLinks in class ValueCollection

setOutputLinks

public void setOutputLinks(Collection c)
Specified by:
setOutputLinks in class ValueCollection

getMembershipString

public String getMembershipString(Object o)
Overrides:
getMembershipString in class ValueCollection

getMembershipGoal

public Object getMembershipGoal(Object value)
Overrides:
getMembershipGoal in class ValueCollection

formLiteral

public static Literal formLiteral(Symbol facet,
                                  Symbol slot,
                                  Object frame,
                                  Object value,
                                  boolean inverse)

JTP API Documentation