Skip to content
Snippets Groups Projects
Commit e13f25a8 authored by Irina LEE's avatar Irina LEE
Browse files

added nb in specification (eln)

parent 972a1ed4
No related branches found
No related tags found
1 merge request!72Syscams
...@@ -226,7 +226,7 @@ public class ELNSpecification{ ...@@ -226,7 +226,7 @@ public class ELNSpecification{
return modules; return modules;
} }
public LinkedList<ELNTModuleTerminal> getAllModuleTermina(){ public LinkedList<ELNTModuleTerminal> getAllModuleTerminal(){
LinkedList<ELNTModuleTerminal> moduleTerminals = new LinkedList<ELNTModuleTerminal>(); LinkedList<ELNTModuleTerminal> moduleTerminals = new LinkedList<ELNTModuleTerminal>();
for (ELNTComponent moduleTerminal : components) { for (ELNTComponent moduleTerminal : components) {
if (moduleTerminal instanceof ELNTModuleTerminal) { if (moduleTerminal instanceof ELNTModuleTerminal) {
...@@ -235,4 +235,72 @@ public class ELNSpecification{ ...@@ -235,4 +235,72 @@ public class ELNSpecification{
} }
return moduleTerminals; return moduleTerminals;
} }
public int getNbComponentCapacitor(){
return (getAllComponentCapacitor()).size();
}
public int getNbComponentCurrentSinkTDF(){
return (getAllComponentCurrentSinkTDF()).size();
}
public int getNbComponentCurrentSourceTDF(){
return (getAllComponentCurrentSourceTDF()).size();
}
public int getNbComponentIdealTransformer(){
return (getAllComponentIdealTransformer()).size();
}
public int getNbComponentIndependentCurrentSource(){
return (getAllComponentIndependentCurrentSource()).size();
}
public int getNbComponentIndependentVoltageSource(){
return (getAllComponentIndependentVoltageSource()).size();
}
public int getNbComponentInductor(){
return (getAllComponentInductor()).size();
}
public int getNbComponentNodeRef(){
return (getAllComponentNodeRef()).size();
}
public int getNbComponentResistor(){
return (getAllComponentResistor()).size();
}
public int getNbComponentTransmissionLine(){
return (getAllComponentTransmissionLine()).size();
}
public int getNbComponentVoltageControlledCurrentSource(){
return (getAllComponentVoltageControlledCurrentSource()).size();
}
public int getNbComponentVoltageControlledVoltageSource(){
return (getAllComponentVoltageControlledVoltageSource()).size();
}
public int getNbComponentVoltageSinkTDF(){
return (getAllComponentVoltageSinkTDF()).size();
}
public int getNbComponentVoltageSourceTDF(){
return (getAllComponentVoltageSourceTDF()).size();
}
public int getNbMidPortTerminal(){
return (getAllMidPortTerminal()).size();
}
public int getNbModule(){
return (getAllModule()).size();
}
public int getNbModuleTerminal(){
return (getAllModuleTerminal()).size();
}
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment