Class EventMessage

    • Constructor Detail

      • EventMessage

        public EventMessage​(ObjectID newproducerObjectID,
                            EventType neweventType,
                            SerializedParametersOrReturn newparams)
        Constructor
        Parameters:
        newproducerObjectID - ID of the object that produced the event
        neweventType - Event type accomplished by this event.
        newparams - the event message parameters (serialized)
      • EventMessage

        public EventMessage()
        Used for deserialization
    • Method Detail

      • getEventType

        public EventType getEventType()
        Get Event type
        Returns:
        Event type
      • setEventType

        public void setEventType​(EventType theEventType)
        Set event type
        Parameters:
        theEventType - Event type
      • getId

        public EventMessageID getId()
        Get the EventMessage::id
        Returns:
        the id
      • setId

        public void setId​(EventMessageID newid)
        Set the EventMessage::id
        Parameters:
        newid - the id to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • setParams

        public void setParams​(SerializedParametersOrReturn newparams)
        Set the EventMessage::params
        Parameters:
        newparams - the params to set
      • getMessagePriorityAge

        public long getMessagePriorityAge()
        Get the EventMessage::messagePriorityAge
        Returns:
        the messagePriorityAge
      • setMessagePriorityAge

        public void setMessagePriorityAge​(long newmessagePriorityAge)
        Set the EventMessage::messagePriorityAge
        Parameters:
        newmessagePriorityAge - the messagePriorityAge to set
      • getProducerObjectID

        public ObjectID getProducerObjectID()
        Get the EventMessage::producerObjectID
        Returns:
        the producerObjectID
      • setProducerObjectID

        public void setProducerObjectID​(ObjectID newproducerObjectID)
        Set the EventMessage::producerObjectID
        Parameters:
        newproducerObjectID - the producerObjectID to set
      • setEventState

        public void setEventState​(EventMessageStateOuter.EventState neweventState)
        Set the EventMessage::eventState
        Parameters:
        neweventState - the eventState to set