Interface JmodelStationDefinition

All Superinterfaces:
StationDefinition
All Known Implementing Classes:
JSimGraphModel

public interface JmodelStationDefinition extends StationDefinition

Title: Jmodel Station Definition Interface

Description: This interface provides methods for editing stations for JMODEL models. It actually extends JSIM StationDefinition interface to provide a compatibility layer.

Author:
Bertoli Marco Date: 3-giu-2005 Time: 10.08.11
  • Method Details

    • addStation

      Object addStation(String type)
      Adds a new station to the model, given the station type.
      Parameters:
      type - type of the new station.
      Returns:
      search key for the new station.
    • deleteStation

      void deleteStation(Object key)
      Deletes a station from the model, given the search key.
      Specified by:
      deleteStation in interface StationDefinition
    • previewStationName

      String previewStationName(String type)
      Returns name of the next station, given the station type.
    • setStationPosition

      void setStationPosition(Object key, JMTPoint position)
      Sets position of the station, given the search key.
    • getStationPosition

      JMTPoint getStationPosition(Object key)
      Returns position of the station, given the search key.
    • serializeStation

      Object serializeStation(Object key)
      Returns serialized form of a station.
      Parameters:
      key - search key for the station.
      Returns:
      serialized form of the station.
    • addStation

      Object addStation(Object station)
      Adds a new station with name and type from its serialized form.
      Parameters:
      station - serialized form of the new station.
      Returns:
      search key for the new station.
    • LoadStation

      void LoadStation(Object station, Object key, Map<Object,Object> classMap, Map<Object,Object> stationKeyMap)
      Loads parameters of a station from its serialized form.
      Parameters:
      station - serialized form of the station.
      key - search key for the station.
      classMap - map of serialized forms for the station.
      stationKeyMap - map of search keys for stations.