public class SynopsisWrapper extends java.lang.Object implements EventWrapper
EventWithSynopsis
events. This wrapper does not
support any event type other than EventWithSynopsis.Constructor and Description |
---|
SynopsisWrapper() |
Modifier and Type | Method and Description |
---|---|
Event |
unwrap(MendelMessage msg)
Unwraps a
MendelMessage to extract the Event it
contains. |
MendelMessage |
wrap(Event e)
Wraps an
Event up in a MendelMessage , ready to be
transmitted across the network. |
public MendelMessage wrap(Event e) throws java.io.IOException
EventWrapper
Event
up in a MendelMessage
, ready to be
transmitted across the network.wrap
in interface EventWrapper
java.io.IOException
public Event unwrap(MendelMessage msg) throws java.io.IOException, SerializationException
EventWrapper
MendelMessage
to extract the Event
it
contains.unwrap
in interface EventWrapper
java.io.IOException
SerializationException