edu.iu.cnets.klatsch.lang
Class VNode

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

public class VNode
extends Value

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


Field Summary
(package private)  Node n
          the node we're encapsulating
 
Constructor Summary
VNode(GephiNode n)
          Constructs a new node.
VNode(Node n)
          Constructs a new node.
 
Method Summary
 Value method_actor(Value... args)
          actor() : Returns true if this is an actor node.
 Value method_id(Value... args)
          id() : Returns the ID of the node.
 Value method_meme(Value... args)
          meme() : Returns true if this is a meme node.
 java.lang.String toJson()
          Creates a JSON representation of this node.
 java.lang.String toString()
          Converts this node 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

n

Node n
the node we're encapsulating

Constructor Detail

VNode

public VNode(GephiNode n)
Constructs a new node.


VNode

public VNode(Node n)
Constructs a new node.

Method Detail

toString

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

Specified by:
toString in class Value

toJson

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

Overrides:
toJson in class Value
Returns:
the JSON representation

method_actor

public Value method_actor(Value... args)
                   throws EvaluationException
actor() : Returns true if this is an actor node.

Throws:
EvaluationException

method_id

public Value method_id(Value... args)
                throws EvaluationException
id() : Returns the ID of the node.

Throws:
EvaluationException

method_meme

public Value method_meme(Value... args)
                  throws EvaluationException
meme() : Returns true if this is a meme node.

Throws:
EvaluationException