solar.module.protocol
Interface Protocol

All Known Implementing Classes:
BaseProtocol

public interface Protocol

Interface for event transfer protocols.

Version:
$Id: Protocol.java,v 1.3 2003/10/05 18:50:54 glchen Exp $
Author:
Guanling Chen

Method Summary
 Event getEvent()
          Get an event from protocol buffers for processing.
 void putEvent(Event evt, Address from)
          Put a received event into protocol buffers.
 void update(ProtocolEvent evt)
          Update the protocol state with control events.
 

Method Detail

putEvent

public void putEvent(Event evt,
                     Address from)
Put a received event into protocol buffers.


getEvent

public Event getEvent()
               throws java.lang.InterruptedException
Get an event from protocol buffers for processing.

java.lang.InterruptedException

update

public void update(ProtocolEvent evt)
Update the protocol state with control events.