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

added pump and sink

parent 27f7ec37
No related branches found
No related tags found
No related merge requests found
images/*
tags
*.swp
No preview for this file type
File added
File added
File added
package nloc;
public class Pump extends Channel {
public Pump () {
super(0,0);
super.addParent(null);
}
public void addParent(Channel parent) {
System.out.println("Can't add parent to Pump!");
}
}
package nloc;
public class Sink extends Channel {
public Sink () {
super(0,0);
super.addChild(null);
}
public void addChild(Channel parent) {
System.out.println("Can't add Child to Sink!");
}
}
......@@ -13,12 +13,12 @@ public class TeeIntersection extends NlocEntity {
this.inChans = new ArrayList<Channel>();
}
public Channel getOutChan() {
return inChan;
public List<Channel> getInChans() {
return inChans;
}
public List<Channel> getInChans() {
return outChans;
public Channel getOutChan() {
return outChan;
}
public void addInChan(Channel inChan) {
......
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