Class CellComponent

java.lang.Object
jsimgraph.JGraphMod.CellComponent

public class CellComponent extends Object

Title: Cell Component

Description: This class is the structure saved on each jmtgraph cell. Basically it will only store object key and provide toString() method to display component name on the gui.

Author:
Bertoli Marco Date: 3-giu-2005 Time: 10.48.11
  • Field Details

  • Constructor Details

    • CellComponent

      public CellComponent(Object key, JmodelStationDefinition sd)
      Creates a new data structure with given key and referencing given StationDefinition
      Parameters:
      key - station key
      sd - referencing station definition
  • Method Details

    • toString

      public String toString()
      Returns name of this station
      Overrides:
      toString in class Object
      Returns:
      Name of this station
    • getKey

      public Object getKey()
      Returns key referencing this station
      Returns:
      this station's key