Drools :: Beliefs 6.2.0.CR3

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

java.lang.Object
  extended by org.drools.beliefs.graph.impl.GraphImpl<T>
All Implemented Interfaces:
Iterable<GraphNode<T>>, Graph<T>
Direct Known Subclasses:
BayesNetwork

public class GraphImpl<T>
extends Object
implements Graph<T>, Iterable<GraphNode<T>>


Field Summary
protected  int idCounter
           
 
Constructor Summary
GraphImpl(GraphStore<T> graphStore)
           
 
Method Summary
 GraphNode<T> addNode()
           
 GraphNode<T> getNode(int id)
           
 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
Constructor Detail

GraphImpl

public GraphImpl(GraphStore<T> graphStore)
Method Detail

addNode

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

removeNode

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

getNode

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

size

public int size()
Specified by:
size in interface Graph<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.