org.vrspace.neurogrid
Class Node

java.lang.Object
  extended byorg.vrspace.neurogrid.NGObject
      extended byorg.vrspace.neurogrid.Node
Direct Known Subclasses:
User

public class Node
extends NGObject

A NeuroGrid node


Nested Class Summary
 class Node.TripleFilterByPredicate
          Check whether UriTriple contains specified Predicate
 
Field Summary
 java.lang.String name
           
 
Fields inherited from class org.vrspace.neurogrid.NGObject
db_id
 
Constructor Summary
Node()
           
Node(java.lang.String name)
           
Node(java.lang.String name, DBAdapter db)
           
 
Method Summary
 void addEvents(java.util.Set uriTripleSet, EventType type)
          Creates set of Events of a specified type, for the specified UriTriple set.
protected  java.util.SortedSet fetch(Keyword keyword)
          Retreives all uri triples containing this keyword.
 java.util.SortedSet fetch(Predicate predicate, Keyword keyword)
          Get uri triples containing this keyword and predicate
 NGObject next()
           
 java.lang.String toString()
          Returns string containing id and name of this record
 java.lang.Double weight(UriTriple triple)
          Default weight impl, returns clicked# / suggested# for this uriTriple
 
Methods inherited from class org.vrspace.neurogrid.NGObject
deleteStatement, fieldIterator, fieldIterator, fromText, getID, getTable, init, insertStatement, nullify, stringify, stringify, toText, updateStatement, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Constructor Detail

Node

public Node()

Node

public Node(java.lang.String name)

Node

public Node(java.lang.String name,
            DBAdapter db)
Method Detail

fetch

protected java.util.SortedSet fetch(Keyword keyword)
Retreives all uri triples containing this keyword. CHECKME: make it public?

See Also:
UriTriple, Keyword

fetch

public java.util.SortedSet fetch(Predicate predicate,
                                 Keyword keyword)
Get uri triples containing this keyword and predicate

See Also:
UriTriple, Node.TripleFilterByPredicate, Keyword

weight

public java.lang.Double weight(UriTriple triple)
Default weight impl, returns clicked# / suggested# for this uriTriple

See Also:
Event, EventType

addEvents

public void addEvents(java.util.Set uriTripleSet,
                      EventType type)
Creates set of Events of a specified type, for the specified UriTriple set. CHECKME: Event model changed: Node instead of User!

See Also:
Event, EventType, UriTriple

toString

public java.lang.String toString()
Description copied from class: NGObject
Returns string containing id and name of this record

Overrides:
toString in class NGObject

next

public NGObject next()
Specified by:
next in class NGObject