Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
TTool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mbe-tools
TTool
Commits
e13f25a8
Commit
e13f25a8
authored
6 years ago
by
Irina LEE
Browse files
Options
Downloads
Patches
Plain Diff
added nb in specification (eln)
parent
972a1ed4
No related branches found
No related tags found
1 merge request
!72
Syscams
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/elntranslator/ELNSpecification.java
+69
-1
69 additions, 1 deletion
src/main/java/elntranslator/ELNSpecification.java
with
69 additions
and
1 deletion
src/main/java/elntranslator/ELNSpecification.java
+
69
−
1
View file @
e13f25a8
...
@@ -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
>
getAllModuleTermina
l
(){
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment