Class Event

  • All Implemented Interfaces:
    java.io.Serializable

    public class Event
    extends java.lang.Object
    implements java.io.Serializable
    Model of Event, used f. e. as nodes in hasse diagrams This event holds the eventName, coSets, allPreviousEvents, visited, nextEvents, previousEvents, nextStates, previousStates
    Author:
    Robin Bergenthum, Raphael Meyer
    See Also:
    Serialized Form
    • Constructor Detail

      • Event

        public Event​(java.lang.String name)
        Constructor for Event with given name
        Parameters:
        name - the name for the event
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string with the name of the event
      • getEventName

        public java.lang.String getEventName()
        Returns:
        the name of the event
      • setEventName

        public void setEventName​(java.lang.String eventName)
        Parameters:
        eventName - set the name of the current event
      • getCoSets

        public java.util.ArrayList<java.lang.Integer> getCoSets()
        Returns:
        the coSets of the event
      • setCoSets

        public void setCoSets​(java.util.ArrayList<java.lang.Integer> coSets)
        Parameters:
        coSets - coSets for the current event
      • getAllPreviousEvents

        public java.util.ArrayList<Event> getAllPreviousEvents()
        Returns:
        all previous events of the current event
      • setAllPreviousEvents

        public void setAllPreviousEvents​(java.util.ArrayList<Event> allPreviousEvents)
        Parameters:
        allPreviousEvents - all previous events of the current event
      • isVisited

        public boolean isVisited()
        Returns:
        whether the current events is visited
      • setVisited

        public void setVisited​(boolean visited)
        Parameters:
        visited - to set as a boolean value
      • getNextEvents

        public java.util.ArrayList<Event> getNextEvents()
        Returns:
        the next events of the current one
      • setNextEvents

        public void setNextEvents​(java.util.ArrayList<Event> nextEvents)
        Parameters:
        nextEvents - next events to set as ArrayList
      • getPreviousEvents

        public java.util.ArrayList<Event> getPreviousEvents()
        Returns:
        get the previous events of the current event
      • setPreviousEvents

        public void setPreviousEvents​(java.util.ArrayList<Event> previousEvents)
        Parameters:
        previousEvents - to set the previous events of the current event
      • getNextStates

        public java.util.ArrayList<State> getNextStates()
        Returns:
        the next states of current event
      • setNextStates

        public void setNextStates​(java.util.ArrayList<State> nextStates)
        Parameters:
        nextStates - set the next states of the current event
      • getPreviousStates

        public java.util.ArrayList<State> getPreviousStates()
        Returns:
        the previous states of the current event
      • setPreviousStates

        public void setPreviousStates​(java.util.ArrayList<State> previousStates)
        Parameters:
        previousStates - set the previous states of the current event
      • getSerialversionuid

        public static long getSerialversionuid()
        Returns:
        just the serialversionuid which was generated