Class SocketChangedEvent

  • All Implemented Interfaces:
    DirtiesSaveEvent, RunPipelineEvent

    public class SocketChangedEvent
    extends java.lang.Object
    implements RunPipelineEvent, DirtiesSaveEvent
    An event that occurs when the value stored in a socket changes. This can happen, for example, as the result of an operation completing, or as a response to user input.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean doesDirtySave()
      This event will only dirty the save if the InputSocket does not have connections.
      boolean isRegarding​(Socket socket)
      Queries the event to determine if this event is about this socket.
      boolean pipelineShouldRun()
      Indicates to the PipelineRunner that there is an update to one of the values and it should run again.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SocketChangedEvent

        public SocketChangedEvent​(Socket socket)
        Parameters:
        socket - The socket that changed, with its new value.
    • Method Detail

      • isRegarding

        public boolean isRegarding​(Socket socket)
        Queries the event to determine if this event is about this socket.
        Parameters:
        socket - The socket to check to see if it is related to.
        Returns:
        True if this socket is with regards to this event.
      • doesDirtySave

        public boolean doesDirtySave()
        This event will only dirty the save if the InputSocket does not have connections. Thus the value can only have been changed by a UI component. If the socket has connections then the value change is triggered by another socket's change.
        Specified by:
        doesDirtySave in interface DirtiesSaveEvent
        Returns:
        True if this should dirty the save.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object