All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ie3.netpad.map.MapGridElementAttribute Maven / Gradle / Ivy

/*
 * © 2020. TU Dortmund University,
 * Institute of Energy Systems, Energy Efficiency and Energy Economics,
 * Research group Distribution grid planning and operation
*/
package edu.ie3.netpad.map;

import edu.ie3.datamodel.models.UniqueEntity;
import edu.ie3.datamodel.models.input.NodeInput;
import edu.ie3.datamodel.models.input.system.*;
import javafx.scene.paint.Color;

/**
 * Contains attributes for map grid graphic elements incl. e.g. their color definition or their name
 *
 * @version 0.1
 * @since 01.06.20
 */
public enum MapGridElementAttribute {
  SLACK(NodeInput.class, "Slack", Color.BLACK),
  PV(PvInput.class, "Photovoltaic", Color.GREEN),
  LOAD(LoadInput.class, "Load", Color.DARKMAGENTA),
  WEC(WecInput.class, "Wec", Color.CADETBLUE),
  STORAGE(StorageInput.class, "Storage", Color.CHOCOLATE),
  EV_CS(EvcsInput.class, "EvChargingStation", Color.MAGENTA),
  FIXED_FEED_IN(FixedFeedInInput.class, "FixedFeedIn", Color.GRAY);

  private final Class clz;
  private final String id;
  private final Color color;

  MapGridElementAttribute(Class clz, String id, Color color) {
    this.clz = clz;
    this.id = id;
    this.color = color;
  }

  public String getId() {
    return id;
  }

  public Color getColor() {
    return color;
  }

  public Class getClz() {
    return clz;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy