|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.pod.Protocol
public abstract class Protocol
A Protocol is a reification of the concept of protocol, which underlies the connection of Generators, Pods, and Views. Each supported protocol will have a corresponding class, and this class is expected to be implemented as a singleton (ie it must have a private constructor).
The protocols implemented by the diva.pod package are defined as inner classes here, so that nice names of the form Protocol.Graph result. However, additional protocols can be created simply by subclassing Protocol.
Nested Class Summary | |
---|---|
class |
Protocol.Graph
The Graph protocol. |
class |
Protocol.Layout
The Layout protocol. |
Constructor Summary | |
---|---|
protected |
Protocol(String name)
Subclasses must have a private constructor that calls this constructor with the protocol name. |
Method Summary | |
---|---|
abstract Protocol |
getInstance()
Get the single instance of this protocol class. |
String |
getName()
Get the name of this protocol. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Protocol(String name)
Method Detail |
---|
public String getName()
public abstract Protocol getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |