edu.iu.cnets.klatsch.lang
Class VEvent

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

public class VEvent
extends Value

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


Field Summary
(package private)  Event e
          the event we're encapsulating
 
Constructor Summary
VEvent(BasicEvent e)
          Constructs a new event.
VEvent(Event e)
          Constructs a new event.
 
Method Summary
 Value method_edges(Value... args)
          edges() : Returns a stream of edges in this event.
 Value method_time(Value... args)
          time() : Returns the timestamp for this event.
 java.lang.String toJson()
          Creates a JSON representation of this event.
 java.lang.String toString()
          Converts this event into a string representation.
 
Methods inherited from class edu.iu.cnets.klatsch.lang.Value
require, requireCount, requireType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

e

Event e
the event we're encapsulating

Constructor Detail

VEvent

public VEvent(BasicEvent e)
Constructs a new event.


VEvent

public VEvent(Event e)
Constructs a new event.

Method Detail

toString

public java.lang.String toString()
Converts this event into a string representation.

Specified by:
toString in class Value

toJson

public java.lang.String toJson()
Creates a JSON representation of this event.

Overrides:
toJson in class Value
Returns:
the JSON representation

method_edges

public Value method_edges(Value... args)
                   throws EvaluationException
edges() : Returns a stream of edges in this event.

Throws:
EvaluationException

method_time

public Value method_time(Value... args)
                  throws EvaluationException
time() : Returns the timestamp for this event.

Throws:
EvaluationException