From 204e6bf743d578441e787a4315430be1da99ace3 Mon Sep 17 00:00:00 2001 From: Nelson Tavares de Sousa <stu103017@mail.uni-kiel.de> Date: Mon, 22 Jun 2015 15:15:18 +0200 Subject: [PATCH] added ISEs --- .../framework/pipe/InstantiationPipe.java | 50 +++++++------------ 1 file changed, 18 insertions(+), 32 deletions(-) diff --git a/src/main/java/teetime/framework/pipe/InstantiationPipe.java b/src/main/java/teetime/framework/pipe/InstantiationPipe.java index 702de988..04b18145 100644 --- a/src/main/java/teetime/framework/pipe/InstantiationPipe.java +++ b/src/main/java/teetime/framework/pipe/InstantiationPipe.java @@ -34,88 +34,74 @@ public class InstantiationPipe implements IPipe { return capacity; } + @Override + public InputPort<?> getTargetPort() { + return this.target; + } + @Override public boolean add(final Object element) { - // TODO Auto-generated method stub - return false; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public boolean addNonBlocking(final Object element) { - // TODO Auto-generated method stub - return false; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public boolean isEmpty() { - // TODO Auto-generated method stub - return false; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public int size() { - // TODO Auto-generated method stub - return 0; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public Object removeLast() { - // TODO Auto-generated method stub - return null; - } - - @Override - public InputPort<?> getTargetPort() { - // TODO Auto-generated method stub - return this.target; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public void sendSignal(final ISignal signal) { - // TODO Auto-generated method stub - + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public <T> void connectPorts(final OutputPort<? extends T> sourcePort, final InputPort<T> targetPort) { - // TODO Auto-generated method stub - + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public void reportNewElement() { - // TODO Auto-generated method stub - + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public boolean isClosed() { - // TODO Auto-generated method stub - return false; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public boolean hasMore() { - // TODO Auto-generated method stub - return false; + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public void waitForStartSignal() throws InterruptedException { - // TODO Auto-generated method stub - + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public void waitForInitializingSignal() throws InterruptedException { - // TODO Auto-generated method stub - + throw new IllegalStateException("This must not be called while executing the configuration"); } @Override public void close() { - // TODO Auto-generated method stub - + throw new IllegalStateException("This must not be called while executing the configuration"); } } -- GitLab