|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
In standard graph theory, an Edge is connected to two
Node instances. Our framework provides an implementation for
the concept of connection roles, which we call ports. Ports allow you to
specify the types and cardinalities of edges that may connect to a Node.
The Port interface defines the characteristics of a single connection point
to a Node from which an Edge instance is attached.
In other words, an Edge connects to a Node via one
of the many Port instances owned and managed by a Node,
and not to the Node directly.
A Port uses a so-called PortDenotation, a named
meta-level object which defines and returns the rules for incoming and outgoing
connections, including their cardinalities.
Ports have identifiers which can be returned to clients who request them.
Constructing a Port is done by means of a
GraphModelFactory,
which will hide the particular implementation classes from client code.
Port objects that are dereferenced will be garbage collected.
PortDenotation| Method Summary | |
Port |
deepCopy(Node node)
Makes a deep copy of the Port. |
PortDenotation |
getDenotation()
Returns the denotation object associated with this Port. |
long |
getID()
Returns the id of the Port. |
Port |
getWrappedPort()
Returns the reference to the wrapped port or null
if no port is wrapped. |
| Method Detail |
public long getID()
Port.
Port.public PortDenotation getDenotation()
Port.
PortDenotation object of this
Port.public Port getWrappedPort()
null
if no port is wrapped. If null is returned, then
this indicates that this instance is a leaf-port.
If a value different from null is returned, it
indicates that this port wraps the returned port instance.
null if no port is wrapped.public Port deepCopy(Node node)
Port.
node - the Node to associate the copy with.
Port.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||