|
|||||||||
| Home >> All >> iiuf >> util >> [ graph overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
iiuf.util.graph
Class DefaultGraphPort

java.lang.Objectjava.util.Observable
iiuf.util.DefaultAttributable
iiuf.util.graph.DefaultGraphPort
- All Implemented Interfaces:
- iiuf.util.Attributable, GraphPort
- public class DefaultGraphPort
- extends iiuf.util.DefaultAttributable
- implements GraphPort
- extends iiuf.util.DefaultAttributable
Default graph port implementation. (c) 2000, 2001, IIUF, DIUF
- Version:
- $Name: $ $Revision: 1.1 $
| Nested Class Summary |
| Nested classes inherited from class iiuf.util.DefaultAttributable |
|
| Field Summary | |
protected int |
capacity
|
private int |
index
|
private iiuf.util.EventListenerList |
listeners
|
protected int |
maxCapacity
|
protected GraphNode |
node
|
| Fields inherited from class iiuf.util.DefaultAttributable |
|
| Fields inherited from class java.util.Observable |
|
| Fields inherited from interface iiuf.util.graph.GraphPort |
INFINITE |
| Constructor Summary | |
DefaultGraphPort(int capacity_)
|
|
| Method Summary | |
void |
addGraphPortListener(GraphPortListener l)
|
void |
addGraphPortListener(GraphPortListener l,
boolean weak)
|
boolean |
compatible(GraphPort port)
|
GraphEdge |
createEdge(GraphPort toPort)
|
void |
fireConnected(GraphPort port,
GraphEdge edge)
|
void |
fireDisconnected(GraphPort port,
GraphEdge edge)
|
private int |
getCount(GraphEdge[] edges)
|
int |
getEdgeCount()
|
GraphEdge[] |
getEdges()
|
private GraphEdge[] |
getEdges(GraphEdge[] edges)
|
GraphEdge[] |
getIn()
|
int |
getInCount()
|
int |
getIndex()
|
GraphNode |
getNode()
|
GraphEdge[] |
getOut()
|
int |
getOutCount()
|
boolean |
isFull()
|
void |
removeGraphPortListener(GraphPortListener l)
|
void |
setNode(GraphNode node_,
int index_)
|
| Methods inherited from class iiuf.util.DefaultAttributable |
addObserver, commit, get, getAttributes, has, removeObserver, set, toString |
| Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface iiuf.util.Attributable |
addObserver, commit, get, getAttributes, has, removeObserver, set |
| Field Detail |
maxCapacity
protected int maxCapacity
capacity
protected int capacity
node
protected GraphNode node
index
private int index
listeners
private iiuf.util.EventListenerList listeners
| Constructor Detail |
DefaultGraphPort
public DefaultGraphPort(int capacity_)
| Method Detail |
addGraphPortListener
public void addGraphPortListener(GraphPortListener l)
- Specified by:
addGraphPortListenerin interfaceGraphPort
addGraphPortListener
public void addGraphPortListener(GraphPortListener l, boolean weak)
removeGraphPortListener
public void removeGraphPortListener(GraphPortListener l)
- Specified by:
removeGraphPortListenerin interfaceGraphPort
fireConnected
public void fireConnected(GraphPort port, GraphEdge edge)
fireDisconnected
public void fireDisconnected(GraphPort port, GraphEdge edge)
getIndex
public int getIndex()
getNode
public GraphNode getNode()
setNode
public void setNode(GraphNode node_, int index_)
compatible
public boolean compatible(GraphPort port)
- Specified by:
compatiblein interfaceGraphPort
isFull
public boolean isFull()
createEdge
public GraphEdge createEdge(GraphPort toPort)
- Specified by:
createEdgein interfaceGraphPort
getCount
private int getCount(GraphEdge[] edges)
getEdges
private GraphEdge[] getEdges(GraphEdge[] edges)
getEdgeCount
public int getEdgeCount()
- Specified by:
getEdgeCountin interfaceGraphPort
getEdges
public GraphEdge[] getEdges()
getInCount
public int getInCount()
- Specified by:
getInCountin interfaceGraphPort
getIn
public GraphEdge[] getIn()
getOutCount
public int getOutCount()
- Specified by:
getOutCountin interfaceGraphPort
getOut
public GraphEdge[] getOut()
|
|||||||||
| Home >> All >> iiuf >> util >> [ graph overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC