Package org.drools.beliefs.graph.impl
Class GraphNodeImpl<T>
- java.lang.Object
-
- org.drools.beliefs.graph.impl.GraphNodeImpl<T>
-
-
Constructor Summary
Constructors Constructor Description GraphNodeImpl(int id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInEdge(Edge outEdge)voidaddOutEdge(Edge inEdge)TgetContent()intgetId()java.util.List<Edge>getInEdges()java.util.List<Edge>getOutEdges()voidremoveInEdge(Edge outEdge)voidremoveOutEdge(Edge inEdge)voidsetContent(T content)java.lang.StringtoString()
-
-
-
Method Detail
-
setContent
public void setContent(T content)
- Specified by:
setContentin interfaceGraphNode<T>
-
getContent
public T getContent()
- Specified by:
getContentin interfaceGraphNode<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 java.util.List<Edge> getInEdges()
- Specified by:
getInEdgesin interfaceGraphNode<T>
-
getOutEdges
public java.util.List<Edge> getOutEdges()
- Specified by:
getOutEdgesin interfaceGraphNode<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-