Interface ICityHall

  • All Known Implementing Classes:
    CityHall

    public interface ICityHall
    Representing the state of the various issues that may be addressed at the city hall.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2014 Created on Dec 31, 2014
    • Method Detail

      • getNotices

        javafx.collections.ObservableList<ICityHallNotice> getNotices()
        Retrieve the list of notices for wares that can be delivered to other cities at a guaranteed price. These notices get updated on a weekly basis.
        Returns:
        observable list of all notices in the city hall
      • getOutriggerContract

        java.util.Optional<IOutriggerContract> getOutriggerContract()
        Current outrigger of the city. As the city may not have an outrigger assigned it may be absent.
        Returns:
        Optional of the outrigger contract. empty if no outrigger is assigned
      • setOutriggerContract

        void setOutriggerContract​(java.util.Optional<IOutriggerContract> contract)
        Set the outrigger contract.
        Parameters:
        contract - set the Optional outrigger contract
      • getMayor

        ICitizen getMayor()
        Current mayor of the city
        Returns:
        mayor of the city.
      • getElectionDate

        java.time.LocalDateTime getElectionDate()
        Date of the next election. Elections happen all 2 years.
        Returns:
        date of the next election
      • getCandidates

        java.util.List<ICitizen> getCandidates()
        Retrieve the list of candidates for the next election.
        Returns:
        List of mayor candidates
      • getNextCouncilMeeting

        java.util.Optional<java.time.LocalDateTime> getNextCouncilMeeting()
        Date of the next council meeting to discuss a petition.
        Returns:
        Optional date of the next council meeting. Empty if there is no council meeting.
      • getPetition

        java.util.Optional<ICityPetition> getPetition()
        Petition to be discussed at the next council meeting.
        Returns:
        Optional petition. Empty if there is no petition.
      • setPetition

        void setPetition​(java.util.Optional<ICityPetition> petition)
        Set the petition.
        Parameters:
        petition - Optional petition to set.
      • getAlderman

        ICitizen getAlderman()
        Retrieve the alderman.
        Returns:
        alderman of the Hanseatic League
      • getAldermanElectionDate

        java.time.LocalDateTime getAldermanElectionDate()
        Date of the next alderman election.
        Returns:
        date of the next alderman election
      • getAldermanCandidates

        AldermanCandidateList getAldermanCandidates()
        Retrieve the top four of the candidates for the alderman post.
        Returns:
        list of alderman candidates
      • getTreasury

        ITreasury getTreasury()
        Retrieve the treasury.
        Returns:
        treasury of the city
      • getCityGuard

        java.util.List<ICityGuard> getCityGuard()
        Retrieve the city guard.
        Returns:
        list of city guards
      • getAldermanOffice

        java.util.Optional<IAldermanOffice> getAldermanOffice()
        Retrieve the office of the alderman. This office is only available if the alderman resides in the currenct city.
        Returns:
        Optional alderman office. Empty if the office is located in another city.
      • getCity

        ICity getCity()
        Retrieve the city belonging to this city hall
        Returns:
        corresponding city.
      • getCouncilmen

        java.util.List<ICitizen> getCouncilmen()
        Retrieve the list of all councilmen of the city
        Returns:
        List of citizens on the council.
      • getHanseaticMeetingDate

        java.util.Optional<java.time.LocalDateTime> getHanseaticMeetingDate()
        Retrieve the meeting date for the next extra circular hanseatic day.
        Returns:
        Optional date of the next Hanseatic Meeting. Empty if there is no meeting
      • getElectionResult

        java.util.Optional<IElectionResult> getElectionResult()
        Retrieve the Optional election result.
        Returns:
        Optional election result, Empty if there is no election
      • getBallotResult

        java.util.Optional<IBallot> getBallotResult()
        Retrieve the ballot result
        Returns:
        Optional ballot result. Empty if there is no ballot
      • getMaxNumberMilita

        int getMaxNumberMilita()
        Retrieve the maximum allowed members of the guard.
        Returns:
        max number of city guards.