Class CMinimizeAreaLocation


public class CMinimizeAreaLocation extends CFlapLocation
A location describing a child of a CMinimizeArea.
Author:
Benjamin Sigg
  • Constructor Details

    • CMinimizeAreaLocation

      public CMinimizeAreaLocation(CMinimizeArea area)
      Crates a new location at the end of the minimize area.
      Parameters:
      area - the minimize area, not null
  • Method Details

    • getArea

      public CMinimizeArea getArea()
      Gets the CMinimizeArea which is represented by this location.
      Returns:
      the area, not null
    • findRoot

      public String findRoot()
      Description copied from class: CLocation
      Gets the name of the station this location belongs to. This can be the id of any CStation.
      Overrides:
      findRoot in class CFlapLocation
      Returns:
      the name of the station or null if this location does not have enough information to find the root
    • toString

      public String toString()
      Overrides:
      toString in class CFlapLocation