Class AbstractEventTransceiver

    • Constructor Detail

      • AbstractEventTransceiver

        public AbstractEventTransceiver​(String id,
                                        MetaData addressFields,
                                        TimedEventType eventType)
        Construct a new AbstractEventTransceiver.
        Parameters:
        id - String; name of the new AbstractEventTransceiver
        addressFields - MetaData; address format accepted by the new AbstractEventTransceiver
        eventType - TimedEventType; type of the event that the AbstractEventTransceiver can subscribe to in the network
    • Method Detail

      • constructResultFields

        public static MetaData constructResultFields​(TimedEventType eventType)
                                              throws ClassCastException
        Construct a Sim0MQ MetaData object that corresponds to the MetaData of DJUTILS EventType. Classes that do not have a corresponding Sim0MQ type will result in a ClassCastException.
        Parameters:
        eventType - TimedEventType; the event type
        Returns:
        MetaData; a MetaData object that corresponds to the MetaData of the event type
        Throws:
        ClassCastException - when the eventType contains a class that cannot be carried over Sim0MQ