Class CGridAreaLocation


public class CGridAreaLocation extends CSplitLocation
A location that represents a CGridArea.
Author:
Benjamin Sigg
  • Constructor Details

    • CGridAreaLocation

      public CGridAreaLocation(CGridArea area)
      Creates the new location
      Parameters:
      area - the grid area which is represented by this location
  • Method Details

    • getArea

      public CGridArea getArea()
      Gets the area 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 CSplitLocation
      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 CSplitLocation