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

How to use
ConductingEquipment
in
cim1.model

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: com.powsybl/powsybl-cim1-model

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

/**
 * Utility to set the "conductingEquipmentValue"
 *
 * @param conductingEquipmentValue
 *            instance to set
 * @param setInverse
 *            boolean to specify whether to set the inverse association
 *            or not
 * @throws LinkageException
 */
public void setConductingEquipment(
    ConductingEquipment conductingEquipmentValue,
    boolean setInverse) throws LinkageException {
  this.conductingEquipment = conductingEquipmentValue;
  this.currentBitset.set(6);
  if (setInverse) {
    
    if (conductingEquipmentValue != null) {
      conductingEquipmentValue.addTerminals(this, false);
    }
  }
}

origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to clear the associations of this class belonging to a
 * specific subset
 *
 * @param subset
 *            the subset from which to clear the associations of this class
 */
@Override
protected void clearAssociations(final Subset subset) {
  switch (subset) {
    case StateVariables: {
      super.clearAssociations(subset);
      break;
    }
    case Topology: {
      super.clearAssociations(subset);
      break;
    }
    case Equipment: {
      super.clearAssociations(subset);
      break;
    }
    default: // nothing to clear
  }
}
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to read a reference to a resource
 * This function is called by the CIMModel
 *
 * @param class_name
 *            the read name of class
 * @param resource_name
 *            the read name of the associated resource
 * @param id
 *            the id of the associated resource
 * @param model
 *            the model this class belongs to
 * @throws InterpretationException
 */
@Override
public void readResource(final String class_name,
    final String resource_name, final String id, CIMModel model)
    throws InterpretationException, LinkageException {
  if (class_name.equals("BusbarSection")) {
  if (resource_name.equals("VoltageControlZone")) {
    idVoltageControlZone = id.substring(1);
    if (!super.isAddedToUnresolved()) {
      model.addUnresolved();
      super.addToUnresolved();
    }
  }
  } else {
    super.readResource(class_name, resource_name, id, model);
  }
}
origin: com.powsybl/powsybl-cim1-model

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

/**
 * Copy constructor
 * The associations with other objects are not copied
 *
 * @param ConductingEquipment
 *            the reference to the class to copy
 * @return the class constructed
 */
private ConductingEquipment(final ConductingEquipment otherConductingEquipment) {
  // TODO : check exception safe
  this.copyBase(otherConductingEquipment);
}
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);
  // The function has been called by a concrete class :
  // the checking has already been done so we can clear everything !
  super.clearContent(subset);
}
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

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 ConductingEquipment clone() {
  ConductingEquipment newInstance = new ConductingEquipment(this);
  ConductingEquipment 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 otherConductingEquipment
 *            the instance to copy
 */
public void copyBase(final ConductingEquipment otherConductingEquipment) {
  // 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 (otherConductingEquipment.currentBitset.get(1)) {
    BaseVoltage baseVoltageAssociation = otherConductingEquipment.getBaseVoltage();
    //this.idBaseVoltage = (baseVoltageAssociation != null) ? baseVoltageAssociation.getId() : "";
    if (baseVoltageAssociation != null) {
      this.idBaseVoltage = baseVoltageAssociation.getId();
      // the proper bit will be set when the setter is called
    } else {
      this.idBaseVoltage = "";
    }
  }
  // TODO : Call the parent copy constructor instead ?
  super.copyBase(otherConductingEquipment);
}
origin: com.powsybl/powsybl-cim1-converter

if (!injections.isEmpty()) {
  for (cim1.model.ConductingEquipment inj : injections) {
    cim1.model.SvPowerFlow f = inj.getTerminals().get(0).getSvPowerFlow();
    if (f != null) {
      if (f.getP() != 0 || f.getQ() != 0) {
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to read a reference to a resource
 * This function is called by the CIMModel
 *
 * @param class_name
 *            the read name of class
 * @param resource_name
 *            the read name of the associated resource
 * @param id
 *            the id of the associated resource
 * @param model
 *            the model this class belongs to
 * @throws InterpretationException
 */
@Override
public void readResource(final String class_name,
    final String resource_name, final String id, CIMModel model)
    throws InterpretationException, LinkageException {
  if (class_name.equals("RegulatingCondEq")) {
  if (resource_name.equals("RegulatingControl")) {
    idRegulatingControl = id.substring(1);
    if (!super.isAddedToUnresolved()) {
      model.addUnresolved();
      super.addToUnresolved();
    }
  }
  } else {
    super.readResource(class_name, resource_name, id, model);
  }
}
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 otherSwitch
 *            the instance to copy
 */
public void copyBase(final Switch otherSwitch) {
  // 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.
  // TODO : Call the parent copy constructor instead ?
  super.copyBase(otherSwitch);
}
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);
  // The function has been called by a concrete class :
  // the checking has already been done so we can clear everything !
  super.clearContent(subset);
}
origin: com.powsybl/powsybl-cim1-model

 errorMessage.append("ConductingEquipment ");
 errorMessage.append("which ID has been initialized to : ");
 errorMessage.append(getId());
 errorMessage.append(" in the subset ");
 errorMessage.append("${subsetModel.getSubset($class).getName()}");
errorMessage.append("ConductingEquipment ");
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

        || (model.getCurrentSubset() == Subset.Equipment)) {
      idLoadResponse = id.substring(1);
      if (!super.isAddedToUnresolved()) {
         model.addUnresolved();
         super.addToUnresolved();
  throw new InterpretationException(errorMessage.toString());
} else {
  super.readResource(class_name, resource_name, id, model);
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 otherEquivalentEquipment
 *            the instance to copy
 */
public void copyBase(final EquivalentEquipment otherEquivalentEquipment) {
  // 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.
  // TODO : Call the parent copy constructor instead ?
  super.copyBase(otherEquivalentEquipment);
}
origin: com.powsybl/powsybl-cim1-model

/**
 * Utility to clear the associations of this class belonging to a
 * specific subset
 *
 * @param subset
 *            the subset from which to clear the associations of this class
 */
@Override
protected void clearAssociations(final Subset subset) {
  switch (subset) {
    case StateVariables: {
      super.clearAssociations(subset);
      break;
    }
    case Topology: {
      super.clearAssociations(subset);
      break;
    }
    case Equipment: {
      super.clearAssociations(subset);
      break;
    }
    default: // nothing to clear
  }
}
cim1.modelConductingEquipment

Javadoc

This file has been automatically generated by CIMGateway Description : This class "ConductingEquipment.java" represents the class ConductingEquipment extends Equipment + Terminals 0..-1 Terminal (inverseAssociation) + BaseVoltage 0..1 BaseVoltage

Most used methods

  • <init>
    Copy constructor The associations with other objects are not copied
  • addTerminals
    Utility to add a value within the "terminals" ArrayList of "Terminal"
  • addToUnresolved
  • clearAssociations
    Utility to clear the associations of this class belonging to a specific subset
  • clearContent
    Utility to "clear" the content of a class when a subset is invalidated
  • copyBase
    Utility to copy the "base" of an other instance of the same class This utility does not copy the ass
  • getBaseVoltage
    Utility to return the "baseVoltage"
  • getId
  • getMessageForConsistency
    Utility in charge of creating the message when the class is not consistent within a specific context
  • getTerminals
    Utility to return the "terminals" List of "Terminal" enum
  • isAddedToUnresolved
  • modelConsistency
    Utility to check whether this class is consistent according to a subset
  • isAddedToUnresolved,
  • modelConsistency,
  • readAttribute,
  • readResource,
  • removeFromUnresolved,
  • resolveLinks,
  • setBaseVoltage,
  • setFromBoundary,
  • setId,
  • write

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Permission (java.security)
    Abstract class for representing access to a system resource. All permissions have a name (whose inte
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • JComboBox (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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