Class Region


  • public class Region
    extends java.lang.Object
    Model of a region This region holds a list with states belongs to this region
    Author:
    Robin Bergenthum, Raphael Meyer
    • Constructor Summary

      Constructors 
      Constructor Description
      Region()
      Default constructor
      Region​(java.util.ArrayList<State> states)
      Constructor with states
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.ArrayList<State> getStates()  
      void setStates​(java.util.ArrayList<State> states)  
      java.lang.String toString()
      toString output with the states of the current region
      • Methods inherited from class java.lang.Object

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

      • Region

        public Region()
        Default constructor
      • Region

        public Region​(java.util.ArrayList<State> states)
        Constructor with states
        Parameters:
        states - the states of the current region
    • Method Detail

      • toString

        public java.lang.String toString()
        toString output with the states of the current region
        Overrides:
        toString in class java.lang.Object
      • getStates

        public java.util.ArrayList<State> getStates()
        Returns:
        states of current region
      • setStates

        public void setStates​(java.util.ArrayList<State> states)
        Parameters:
        states - set states of current region