congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EnergyConsumer
Code IndexAdd Tabnine to your IDE (free)

How to use
EnergyConsumer
in
cim1.model

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

origin: com.powsybl/powsybl-cim1-model

/**
 * Factory of the class
 *
 * @param id
 *            id of the class EnergyConsumer to create
 * @return the class created
 */
public static EnergyConsumer create(final String id) {
  EnergyConsumer newEnergyConsumer = new EnergyConsumer();
  newEnergyConsumer.setId(id);
  return newEnergyConsumer;
}
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-model

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

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

EnergyConsumer newInstance;
if (instance == null) {
  newInstance = EnergyConsumer.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("EnergyConsumer ");
    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("EnergyConsumer ");
    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, "EnergyConsumer");
      xmlsw.writeAttribute(CIMModel.rdfURI, "ID", getId());
      errorMessage.append("EnergyConsumer ");
      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-converter

private void createLoad(VoltageLevel voltageLevel, cim1.model.EnergyConsumer ec) {
  cim1.model.Terminal t = ec.getTerminals().get(0);
  cim1.model.TopologicalNode tn = t.getTopologicalNode();
    q = svpf.getQ();
  } else {
    LOGGER.warn("No active and reactive power value for load {}", ec.getId());
  LoadType loadType = ec.getId().contains("fict") ? LoadType.FICTITIOUS : LoadType.UNDEFINED;
origin: com.powsybl/powsybl-cim1-model

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

message.append(getMessageForConsistency(this.minBitsets.get(subset)));
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 EnergyConsumer clone() {
  EnergyConsumer newInstance = new EnergyConsumer(this);
  EnergyConsumer newInstanceSP = newInstance;
  return newInstanceSP;
}
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 otherEnergyConsumer
 *            the instance to copy
 */
public void copyBase(final EnergyConsumer otherEnergyConsumer) {
  // 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 (otherEnergyConsumer.currentBitset.get(0)) {
    LoadResponseCharacteristic loadResponseAssociation = otherEnergyConsumer.getLoadResponse();
    //this.idLoadResponse = (loadResponseAssociation != null) ? loadResponseAssociation.getId() : "";
    if (loadResponseAssociation != null) {
      this.idLoadResponse = loadResponseAssociation.getId();
      // the proper bit will be set when the setter is called
    } else {
      this.idLoadResponse = "";
    }
  }
  // TODO : Call the parent copy constructor instead ?
  super.copyBase(otherEnergyConsumer);
}
origin: com.powsybl/powsybl-cim1-converter

float q0 = 0;
if (ec2 != null) {
  cim1.model.Terminal ect2 = ec2.getTerminals().get(0);
  cim1.model.SvPowerFlow ect2svpf = ect2.getSvPowerFlow();
  ect2isConnected = ect2.isConnected();
origin: com.powsybl/powsybl-cim1-model

EnergyConsumer newInstance = EnergyConsumer.create(id);
this.id_EnergyConsumer.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("EnergyConsumer ");
errorMessage.append("which ID has been initialized to : ");
errorMessage.append(getId());
LOGGER.error(errorMessage.toString());
LOGGER.error(e.toString(), e);
origin: com.powsybl/powsybl-cim1-model

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

 xmlsw.writeEmptyElement(CIMURI.CIMURI,"LoadResponseCharacteristic.EnergyConsumer");
 xmlsw.writeAttribute(CIMModel.rdfURI, "resource", "#"
      + energyConsumer.getId());
} catch (XMLStreamException e) {
 StringBuilder errorMessage = new StringBuilder(
cim1.modelEnergyConsumer

Javadoc

This file has been automatically generated by CIMGateway Description : This class "EnergyConsumer.java" represents the class EnergyConsumer extends ConductingEquipment + LoadResponse 1..1 LoadResponseCharacteristic

Most used methods

  • getId
  • <init>
    Copy constructor The associations with other objects are not copied
  • 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
  • getLoadResponse
    Utility to return the "loadResponse"
  • getMessageForConsistency
    Utility in charge of creating the message when the class is not consistent within a specific context
  • getTerminals
  • removeFromUnresolved
  • setId
  • setLoadResponse
    Utility to set the "loadResponseValue"
  • writeClass
    Utility to return the content of this class into the CIM XML format
  • setLoadResponse,
  • writeClass

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JComboBox (javax.swing)
  • JLabel (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now