diva.pod
Interface Pod

All Superinterfaces:
PropertyContainer

public interface Pod
extends PropertyContainer

A Pod is a "pile of data." This is any complex evolving data structure. Pods communicate through channels, between objects associated with the Pods called transmitters and receivers. Communication is structured according to a protocol, which is like a coarse-grained typing of the data.

Pods can have string-named properties attached to them.

Version:
$Revision: 1.3 $
Author:
John Reekie

Method Summary
 Receiver getReceiver(Protocol p, HashMap properties)
          Get a receiver of the given protocol from the Pod.
 Transmitter getTransmitter(Protocol p, HashMap properties)
          Get a transmitter of the given protocol from the Pod.
 
Methods inherited from interface diva.util.PropertyContainer
getProperty, propertyNames, setProperty
 

Method Detail

getTransmitter

Transmitter getTransmitter(Protocol p,
                           HashMap properties)
Get a transmitter of the given protocol from the Pod. Null if the protocol is not supported by the pod, or if the Pod is unable to create more transmitters (some Pods, for example, may be able to create only a single transmitter). The properties hash map, if supplied, can be used in a protocol-specific way to place constraints on the selection of a transmitter.


getReceiver

Receiver getReceiver(Protocol p,
                     HashMap properties)
Get a receiver of the given protocol from the Pod. Null if the protocol is not supported by the pod. The properties hash map, if supplied, can be used in a protocol-specific way to place constraints on the selection of a receiver.



Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.