edu.upc.dama.dex.core
Class Graph.TypeData

java.lang.Object
  extended by edu.upc.dama.dex.core.Graph.TypeData
Enclosing class:
Graph

public static class Graph.TypeData
extends java.lang.Object

Stores information about a node or edge type.


Method Summary
 int getId()
          Gets the type identifier.
 java.lang.String getName()
          Gets the name of the type.
 int[] getRestricted()
          Gets the tail and the head node type identifiers for restricted edge types.
 boolean hasNeighbors()
          Gets whether it is an edge type which materializes neighbors.
 boolean isDirected()
          Gets whether it is a directed edge type.
 boolean isEdgeType()
          Gets whether it is an edge type.
 boolean isNodeType()
          Gets whether it is a node type.
 boolean isRestricted()
          Gets whether it is a restricted edge type.
 boolean isUndirected()
          Gets whether it is an undirected edge type.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getId

public int getId()
Gets the type identifier.

Returns:
Type identifier.

getName

public java.lang.String getName()
Gets the name of the type.

Returns:
The name of the type.

isNodeType

public boolean isNodeType()
Gets whether it is a node type.

Returns:
true if it is a node type, false otherwise.

isEdgeType

public boolean isEdgeType()
Gets whether it is an edge type.

Returns:
true if it is an edge type, false otherwise.

isDirected

public boolean isDirected()
Gets whether it is a directed edge type.

Returns:
true if it is a directed edge type, false otherwise.

hasNeighbors

public boolean hasNeighbors()
Gets whether it is an edge type which materializes neighbors.

Returns:
true if it is an edge type which materializes neighbors, false otherwise.

isUndirected

public boolean isUndirected()
Gets whether it is an undirected edge type.

Returns:
true if it is an undirected edge type, false otherwise.

isRestricted

public boolean isRestricted()
Gets whether it is a restricted edge type.

Returns:
true if it is a restricted edge type, false otherwise.

getRestricted

public int[] getRestricted()
Gets the tail and the head node type identifiers for restricted edge types.

Returns:
A 2-length array, 0-index stores the tail and 1-index stores the head node type identifier.
See Also:
Graph.TypeData.isRestricted()

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object