public class BasicEventWrapper extends java.lang.Object implements EventWrapper
Constructor and Description |
---|
BasicEventWrapper(EventMap eventMap) |
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 BasicEventWrapper(EventMap eventMap)
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