Class CityHall

  • All Implemented Interfaces:
    ICityHall

    public class CityHall
    extends java.lang.Object
    implements ICityHall
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 31, 2014
    • Constructor Detail

      • CityHall

        public CityHall()
    • Method Detail

      • setAldermanElectionDate

        public void setAldermanElectionDate​(java.time.LocalDateTime aldermanElectionDate)
        Set the elederman election date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.
        Parameters:
        aldermanElectionDate - date of the alderman election
      • setElectionDate

        public void setElectionDate​(java.time.LocalDateTime electionDate)
        Set the election date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.
        Parameters:
        electionDate - election data of the city mayor
      • setNextCouncilMeeting

        public void setNextCouncilMeeting​(java.util.Optional<java.time.LocalDateTime> nextCouncilMeeting)
        Set the next council meeting date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.
        Parameters:
        nextCouncilMeeting - Optional date of the next council meeting
      • setHanseaticMeetingDate

        public void setHanseaticMeetingDate​(java.util.Optional<java.time.LocalDateTime> meetingDate)
        Set the hanseatic meeting date and verify that there are no clashed with election dates. If there are the date is move as long as there are no clashes.
        Parameters:
        meetingDate - Optional date of the next hanseatic meeting