Drools :: Beliefs 6.2.0.CR3

org.drools.beliefs.graph.impl
Class MapGraphStore<T>

java.lang.Object
  extended by org.drools.beliefs.graph.impl.MapGraphStore<T>
All Implemented Interfaces:
Iterable<GraphNode<T>>, GraphStore<T>

public class MapGraphStore<T>
extends Object
implements GraphStore<T>


Field Summary
protected  int idCounter
           
protected  Map<Integer,GraphNode<T>> nodes
           
 
Constructor Summary
MapGraphStore()
           
 
Method Summary
 GraphNode<T> addNode()
           
 GraphNode<T> getNode(int id)
           
 Map<Integer,GraphNode<T>> getNodes()
           
 Iterator<GraphNode<T>> iterator()
           
 GraphNode<T> removeNode(int id)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idCounter

protected int idCounter

nodes

protected Map<Integer,GraphNode<T>> nodes
Constructor Detail

MapGraphStore

public MapGraphStore()
Method Detail

getNodes

public Map<Integer,GraphNode<T>> getNodes()

addNode

public GraphNode<T> addNode()
Specified by:
addNode in interface GraphStore<T>

removeNode

public GraphNode<T> removeNode(int id)
Specified by:
removeNode in interface GraphStore<T>

getNode

public GraphNode<T> getNode(int id)
Specified by:
getNode in interface GraphStore<T>

size

public int size()
Specified by:
size in interface GraphStore<T>

iterator

public Iterator<GraphNode<T>> iterator()
Specified by:
iterator in interface Iterable<GraphNode<T>>

Drools :: Beliefs 6.2.0.CR3

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.