Codota Logo
Substation
Code IndexAdd Codota to your IDE (free)

How to use
Substation
in
cim1.model

Best Java code snippets using cim1.model.Substation (Showing top 18 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: com.powsybl/powsybl-cim1-model

/**
 * Factory of the class
 *
 * @param id
 *            id of the class Substation to create
 * @return the class created
 */
public static Substation create(final String id) {
  Substation newSubstation = new Substation();
  newSubstation.setId(id);
  return newSubstation;
}
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to set the "memberOf_SubstationValue"
 *
 * @param memberOf_SubstationValue
 *            instance to set
 * @param setInverse
 *            boolean to specify whether to set the inverse association
 *            or not
 * @throws LinkageException
 */
public void setMemberOf_Substation(
    Substation memberOf_SubstationValue,
    boolean setInverse) throws LinkageException {
  this.memberOf_Substation = memberOf_SubstationValue;
  this.currentBitset.set(1);
  if (setInverse) {
    
    if (memberOf_SubstationValue != null) {
      memberOf_SubstationValue.addContains_VoltageLevels(this, false);
    }
  }
}
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to "clear" the content of a class when a subset is invalidated
 *
 * @param subset subset to clean
 */
@Override
public void clearContent(Subset subset) {
  // First of all, we clear the associations:
  this.clearAssociations(subset);
  switch (subset) {
    default: // nothing to clear
  }
}
origin: com.powsybl/powsybl-cim1-converter

cim1.model.SubGeographicalRegion sgr = s.getRegion();
cim1.model.GeographicalRegion gr = sgr.getRegion();
  substationsNotAssociatedToValidCountry.add(s.getId());
  country = config.getDefaultCountry();
if (newSubstationId == null) {
  substationId = namingStrategy.getId(s);
  substationName = s.getName();
} else {
  cim1.model.Substation newS = cimModel.getId_Substation().get(namingStrategy.getCimId(newSubstationId));
  substationId = namingStrategy.getId(newS);
  substationName = newS.getName();
if (s.getContains_VoltageLevels() != null) {
  for (cim1.model.VoltageLevel vl : s.getContains_VoltageLevels()) {
    String voltageLevelId = namingStrategy.getId(vl);
    VoltageLevel voltageLevel = network.getVoltageLevel(voltageLevelId);
  LOGGER.warn("Substation {} doesn't contain any voltage level", s.getName());
origin: com.powsybl/powsybl-cim1-model

      this.setRegion(attributeToSet, setInverse);
    } catch(LinkageException e) {
      LOGGER.error(e.toString(), e);
        this.setRegion(attributeToSetFromBoundary, setInverse);
      } catch(LinkageException e) {
        LOGGER.error(e.toString(), e);
      errorMessage.append(idRegion);
      errorMessage.append("\" in \"Substation\" of id \"");
      errorMessage.append(this.getId());
      errorMessage.append("\" !");
      throw new LinkageException(errorMessage.toString());
    errorMessage.append(idRegion);
    errorMessage.append("\" in \"Substation\" of id \"");
    errorMessage.append(this.getId());
    errorMessage.append("\" !");
    throw new LinkageException(errorMessage.toString());
removeFromUnresolved();
origin: com.powsybl/powsybl-cim1-model

Substation newInstance;
if (instance == null) {
  newInstance = Substation.create(id);
} else {
  newInstance = instance;
  newMap.put(newInstance.getId(), newInstance);
  this.subsetsInstances.put(
      Subset.Equipment, newMap);
      .put(newInstance.getId(), newInstance);
origin: com.powsybl/powsybl-cim1-model

message.append(this.getId());
message.append("\" is not consistent in this context:\n");
origin: com.powsybl/powsybl-cim1-model

    xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId());
    errorMessage.append("Substation ");
    errorMessage.append("which ID has been initialized to : ");
    errorMessage.append(getId());
    LOGGER.error(errorMessage.toString());
    LOGGER.error(e.toString(), e);
writeClass(xmlsw);
super.write(xmlsw, false);
    errorMessage.append("Substation ");
    errorMessage.append("which ID has been initialized to : ");
    errorMessage.append(getId());
    LOGGER.error(errorMessage.toString());
    LOGGER.error(e.toString(), e);
    try {
      xmlsw.writeStartElement(CIMURI.CIMURI, "Substation");
      xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId());
      errorMessage.append("Substation ");
      errorMessage.append("which ID has been initialized to : ");
      errorMessage.append(getId());
      errorMessage.append(" in the subset ");
      errorMessage.append("Equipment");
  writeClass(xmlsw);
  super.write(xmlsw, subset, false);
origin: com.powsybl/powsybl-cim1-model

Substation newSubstation = new Substation();
  Substation value = entry.getValue();
  newSubstation = value;
  this.id_Substation.put(newSubstation.getId(),
      newSubstation);
  this.allInstances.put(newSubstation.getId(),
      newSubstation);
    newMap.put(newSubstation.getId(),
        newSubstation);
    this.subsetsInstances.put(
        .put(newSubstation.getId(),
             newSubstation);
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to copy the "base" of an other instance of the same class
 * This utility does not copy the associations with other instances from
 * the instance to copy
 *
 * @param otherSubstation
 *            the instance to copy
 */
public void copyBase(final Substation otherSubstation) {
  // Memory allocation has done successfully !
  // Dropping "old" objects...
  // This part may change : we do nothing to allow the user to access
  // object by their id from the global model.
  if (otherSubstation.currentBitset.get(0)) {
    SubGeographicalRegion regionAssociation = otherSubstation.getRegion();
    //this.idRegion = (regionAssociation != null) ? regionAssociation.getId() : "";
    if (regionAssociation != null) {
      this.idRegion = regionAssociation.getId();
      // the proper bit will be set when the setter is called
    } else {
      this.idRegion = "";
    }
  }
  // TODO : Call the parent copy constructor instead ?
  super.copyBase(otherSubstation);
}
origin: com.powsybl/powsybl-cim1-model

message.append(getMessageForConsistency(this.minBitsets.get(subset)));
origin: com.powsybl/powsybl-cim1-model

/**
 * Copy constructor
 * The associations with other objects are not copied
 *
 * @param Substation
 *            the reference to the class to copy
 * @return the class constructed
 */
private Substation(final Substation otherSubstation) {
  // TODO : check exception safe
  this.copyBase(otherSubstation);
}
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility returning a copy of the "base" of this instance
 * This utility does not copy the associations with other instances
 *
 * @return a clone of this instance
 */
public Substation clone() {
  Substation newInstance = new Substation(this);
  Substation newInstanceSP = newInstance;
  return newInstanceSP;
}
origin: com.powsybl/powsybl-cim1-model

Substation newInstance = Substation.create(id);
this.id_Substation.put(id, newInstance);
this.currentIO = newInstance;
  newMap.put(newInstance.getId(), newInstance);
  subsetsInstances
      .put(Subset.Equipment,
      .put(newInstance.getId(), newInstance);
origin: com.powsybl/powsybl-cim1-model

errorMessage.append("Substation ");
errorMessage.append("which ID has been initialized to : ");
errorMessage.append(getId());
LOGGER.error(errorMessage.toString());
LOGGER.error(e.toString(), e);
 errorMessage.append("Substation ");
 errorMessage.append("which ID has been initialized to : ");
 errorMessage.append(getId());
 errorMessage.append(" in the subset ");
 errorMessage.append("Equipment");
origin: com.powsybl/powsybl-cim1-model

message.append(getMessageForConsistency(this.minBitset));
origin: com.powsybl/powsybl-cim1-model

 xmlsw.writeEmptyElement(CIMURI.CIMURI,"SubGeographicalRegion.Substations");
 xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "#"
      + substations.getId());
} catch (XMLStreamException e) {
 StringBuilder errorMessage = new StringBuilder(
origin: com.powsybl/powsybl-cim1-model

this.idMemberOf_Substation = memberOf_SubstationAssociation.getId();
cim1.modelSubstation

Javadoc

This file has been automatically generated by CIMGateway Description : This class "Substation.java" represents the class Substation extends EquipmentContainer + Region 1..1 SubGeographicalRegion + Contains_VoltageLevels 0..-1 VoltageLevel (inverseAssociation)

Most used methods

  • getId
  • getRegion
    Utility to return the "region"
  • <init>
    Copy constructor The associations with other objects are not copied
  • addContains_VoltageLevels
    Utility to add a value within the "contains_VoltageLevels" ArrayList of "VoltageLevel"
  • clearAssociations
    Utility to clear the associations of this class belonging to a specific subset
  • copyBase
    Utility to copy the "base" of an other instance of the same class This utility does not copy the ass
  • create
    Factory of the class
  • getContains_VoltageLevels
    Utility to return the "contains_VoltageLevels" List of "VoltageLevel" enum
  • getMessageForConsistency
    Utility in charge of creating the message when the class is not consistent within a specific context
  • getName
  • removeFromUnresolved
  • resolveLinks
    Utility to resolve the links at the end of parsing
  • removeFromUnresolved,
  • resolveLinks,
  • setFromBoundary,
  • setId,
  • setRegion,
  • writeClass

Popular in Java

  • Parsing JSON documents to java classes using gson
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JButton (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now