Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,32 @@ public Object getUnit(String name) {
return null; // no unit found with the given name
}



/**
* Returns the unit with the given name from the list of added unit operations and list of added
* modules.
*
* @param name the name of the unit to retrieve
* @return the unit with the given name, or {@code null} if no such unit is found
*/
public Object getMeasurumentDevice(String name) {
for (ProcessSystem processSystem : addedUnitOperations) {
Object unit = processSystem.getMeasurementDevice(name);
if (unit != null) {
return unit;
}
}

for (ProcessModule processModule : addedModules) {
Object unit = processModule.getMeasurumentDevice(name);
if (unit != null) {
return unit;
}
}
return null; // no unit found with the given name
}

/**
* Returns the unit with the given name from the list of added unit operations and list of added
* modules.
Expand Down
Loading