/** * 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("Conductor")) { } else { super.readResource(class_name, resource_name, id, 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("EquivalentEquipment")) { } else { super.readResource(class_name, resource_name, id, 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("Switch")) { StringBuilder errorMessage = new StringBuilder("The association \""); errorMessage.append(resource_name); errorMessage.append("\" in class \""); errorMessage.append(class_name); errorMessage.append("\" could not be found in the model !"); throw new InterpretationException(errorMessage.toString()); } else { super.readResource(class_name, resource_name, id, 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); } }
/** * 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); } }
throw new InterpretationException(errorMessage.toString()); } else { super.readResource(class_name, resource_name, id, model);
throw new InterpretationException(errorMessage.toString()); } else { super.readResource(class_name, resource_name, id, model);