public class BasicNodeAdapter extends Object implements NodeAdapter
Constructor and Description |
---|
BasicNodeAdapter(BasicNode root)
Create a new adapter.
|
Modifier and Type | Method and Description |
---|---|
int |
getNodeCount(Object node)
Return the number of nodes contained in
this graph or composite node.
|
Object |
getParent(Object node)
Return the graph parent of the given node.
|
Iterator |
inEdges(Object node)
Return an iterator over the edges coming into the given node.
|
boolean |
isComposite(Object node)
Return true.
|
Iterator |
nodes(Object node)
Provide an iterator over the nodes in the
given graph or composite node.
|
Iterator |
outEdges(Object node)
Return an iterator over the edges coming out of the given node.
|
void |
setParent(Object node,
Object parent)
Set the graph parent of the given node.
|
public BasicNodeAdapter(BasicNode root)
public Iterator inEdges(Object node)
inEdges
in interface NodeAdapter
public Iterator outEdges(Object node)
outEdges
in interface NodeAdapter
public Object getParent(Object node)
getParent
in interface NodeAdapter
public void setParent(Object node, Object parent)
setParent
in interface NodeAdapter
public int getNodeCount(Object node)
getNodeCount
in interface NodeAdapter
public boolean isComposite(Object node)
isComposite
in interface NodeAdapter
public Iterator nodes(Object node)
nodes
in interface NodeAdapter
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.