edu.iu.cnets.klatsch.lang
Class VEdge

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

public class VEdge
extends Value

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


Field Summary
(package private)  Edge e
          the edge we're encapsulating
 
Constructor Summary
VEdge(Edge e)
          Constructs a new edge.
VEdge(GephiEdge e)
          Constructs a new edge.
 
Method Summary
 Value method_dst(Value... args)
          dst() : Returns the destination node for this edge.
 Value method_e(Value... args)
          e() : Returns the ending timestamp for this edge.
 Value method_s(Value... args)
          s() : Returns the starting timestamp for this edge.
 Value method_src(Value... args)
          src() : Returns the source node for this edge.
 Value method_trust(Value... args)
          trust() : Returns the trusted weight of the edge.
 Value method_w(Value... args)
          w() : Returns the total weight of the edge.
 java.lang.String toJson()
          Creates a JSON representation of the edge.
 java.lang.String toString()
          Converts this edge 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

Edge e
the edge we're encapsulating

Constructor Detail

VEdge

public VEdge(Edge e)
Constructs a new edge.


VEdge

public VEdge(GephiEdge e)
Constructs a new edge.

Method Detail

toString

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

Specified by:
toString in class Value

toJson

public java.lang.String toJson()
Creates a JSON representation of the edge.

Overrides:
toJson in class Value
Returns:
the JSON representation

method_dst

public Value method_dst(Value... args)
                 throws EvaluationException
dst() : Returns the destination node for this edge.

Throws:
EvaluationException

method_e

public Value method_e(Value... args)
               throws EvaluationException
e() : Returns the ending timestamp for this edge.

Throws:
EvaluationException

method_src

public Value method_src(Value... args)
                 throws EvaluationException
src() : Returns the source node for this edge.

Throws:
EvaluationException

method_s

public Value method_s(Value... args)
               throws EvaluationException
s() : Returns the starting timestamp for this edge.

Throws:
EvaluationException

method_trust

public Value method_trust(Value... args)
                   throws EvaluationException
trust() : Returns the trusted weight of the edge.

Throws:
EvaluationException

method_w

public Value method_w(Value... args)
               throws EvaluationException
w() : Returns the total weight of the edge.

Throws:
EvaluationException