edu.iu.cnets.klatsch.model
Class Node

java.lang.Object
  extended by edu.iu.cnets.klatsch.model.Node
All Implemented Interfaces:
java.lang.Comparable<Node>
Direct Known Subclasses:
BasicNode, GephiNode

public abstract class Node
extends java.lang.Object
implements java.lang.Comparable<Node>

This is the interface for working with a node (actor or meme) from a feed of social media events. The rest of the Klatsch interpreter operates ONLY in terms of this interface. Note that nodes should override equals() and hashCode(), but because they're part of Object, there's no way to force this through an interface.


Field Summary
static char TYPE_ACTOR
          Logically, we should have a proper enumerated type for the various types of node (Actor and Meme for the time being).
static char TYPE_MEME
           
 
Constructor Summary
Node()
           
 
Method Summary
abstract  int id()
          Returns the ID of this node.
abstract  char type()
          Returns the type of this node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

TYPE_ACTOR

public static final char TYPE_ACTOR
Logically, we should have a proper enumerated type for the various types of node (Actor and Meme for the time being). However, the Gephi Attributes API doesn't support storage of non-primitive data types in a straightforward manner, so we're using a character instead. This is gross, but at least you know there's a reason.

See Also:
Constant Field Values

TYPE_MEME

public static final char TYPE_MEME
See Also:
Constant Field Values
Constructor Detail

Node

public Node()
Method Detail

id

public abstract int id()
Returns the ID of this node.


type

public abstract char type()
Returns the type of this node.