org.drools.beliefs.graph.impl
Class GraphNodeImpl<T>
java.lang.Object
org.drools.beliefs.graph.impl.GraphNodeImpl<T>
- All Implemented Interfaces:
- GraphNode<T>
public class GraphNodeImpl<T>
- extends Object
- implements GraphNode<T>
GraphNodeImpl
public GraphNodeImpl(int id)
setContent
public void setContent(T content)
- Specified by:
setContent in interface GraphNode<T>
getContent
public T getContent()
- Specified by:
getContent in interface GraphNode<T>
getId
public int getId()
- Specified by:
getId in interface GraphNode<T>
addInEdge
public void addInEdge(Edge outEdge)
addOutEdge
public void addOutEdge(Edge inEdge)
removeInEdge
public void removeInEdge(Edge outEdge)
removeOutEdge
public void removeOutEdge(Edge inEdge)
getInEdges
public List<Edge> getInEdges()
- Specified by:
getInEdges in interface GraphNode<T>
getOutEdges
public List<Edge> getOutEdges()
- Specified by:
getOutEdges in interface GraphNode<T>
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.