Skip to content
Snippets Groups Projects
Commit 061ffc9f authored by Peter Wagenhuber's avatar Peter Wagenhuber
Browse files

implemented getpathlen for header and payload. Fixes #2

parent c775f2c7
No related branches found
No related tags found
No related merge requests found
......@@ -97,6 +97,22 @@ public class Nloc {
// return pump;
//}
public int getPayloadPathlength(List<Channel> path) {
int len = 0;
for (Channel ch: path) {
len += ch.getPSteps();
}
return len;
}
public int getHeaderPathlength(List<Channel> path) {
int len = 0;
for (Channel ch: path) {
len += ch.getHSteps();
}
return len;
}
public boolean allDropletsInSink() {
boolean allInSink = true;
for (Droplet dr : dropletList) {
......
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