edu.iu.cnets.klatsch.lang
Class VFeed

java.lang.Object
  extended by edu.iu.cnets.klatsch.lang.Value
      extended by edu.iu.cnets.klatsch.lang.VFeed

public class VFeed
extends Value

This makes Feed values from the model a first-class value in Klatsch.


Field Summary
(package private)  Feed f
          the feed we're encapsulating
 
Constructor Summary
VFeed(Feed f)
          Constructs a new feed.
 
Method Summary
 Value method_actorevents(Value... args)
          actorevents(n) : Returns stream of events for the actor with the given ID.
 Value method_actorid(Value... args)
          actorid(s) : Returns the ID of the actor with the given label.
 Value method_actorlabel(Value... args)
          actorlabel(n) : Returns the label of the actor with ID n.
 Value method_connect(Value... args)
          connect() : Attempts to connect to the feed.
 Value method_memeevents(Value... args)
          memeevents(n) : Returns stream of events for the meme with the given ID.
 Value method_memeid(Value... args)
          memeid(s) : Returns the ID of the meme with the given label.
 Value method_memelabel(Value... args)
          memelabel(n) : Returns the label of the meme with ID n.
 Value method_memelinks(Value... args)
          memelinks(n) : Returns memes linked to the meme with the given ID.
 Value method_name(Value... args)
          name() : Returns the name of the feed.
 Value method_update_trust(Value... args)
          update(g) : Applies this feed's updateTrust() rules to the given graph.
 java.lang.String toString()
          Construct a printable representation of the feed.
 
Methods inherited from class edu.iu.cnets.klatsch.lang.Value
require, requireCount, requireType, toJson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

f

Feed f
the feed we're encapsulating

Constructor Detail

VFeed

public VFeed(Feed f)
Constructs a new feed.

Method Detail

toString

public java.lang.String toString()
Construct a printable representation of the feed.

Specified by:
toString in class Value
Returns:
the string

method_actorevents

public Value method_actorevents(Value... args)
                         throws EvaluationException
actorevents(n) : Returns stream of events for the actor with the given ID. actorevents(n, t1, t2) : Returns stream of events between times t1 and t2.

Throws:
EvaluationException

method_actorid

public Value method_actorid(Value... args)
                     throws EvaluationException
actorid(s) : Returns the ID of the actor with the given label.

Throws:
EvaluationException

method_actorlabel

public Value method_actorlabel(Value... args)
                        throws EvaluationException
actorlabel(n) : Returns the label of the actor with ID n.

Throws:
EvaluationException

method_connect

public Value method_connect(Value... args)
                     throws EvaluationException
connect() : Attempts to connect to the feed.

Throws:
EvaluationException

method_memeevents

public Value method_memeevents(Value... args)
                        throws EvaluationException
memeevents(n) : Returns stream of events for the meme with the given ID. memeevents(n, t1, t2) : Returns stream of events between times t1 and t2.

Throws:
EvaluationException

method_memeid

public Value method_memeid(Value... args)
                    throws EvaluationException
memeid(s) : Returns the ID of the meme with the given label.

Throws:
EvaluationException

method_memelabel

public Value method_memelabel(Value... args)
                       throws EvaluationException
memelabel(n) : Returns the label of the meme with ID n.

Throws:
EvaluationException

method_memelinks

public Value method_memelinks(Value... args)
                       throws EvaluationException
memelinks(n) : Returns memes linked to the meme with the given ID.

Throws:
EvaluationException

method_name

public Value method_name(Value... args)
                  throws EvaluationException
name() : Returns the name of the feed.

Throws:
EvaluationException

method_update_trust

public Value method_update_trust(Value... args)
                          throws EvaluationException
update(g) : Applies this feed's updateTrust() rules to the given graph.

Throws:
EvaluationException