From 562015b7ab07e84bb20b22f4426a45fdc821bdb0 Mon Sep 17 00:00:00 2001 From: muskenum Date: Tue, 29 Mar 2016 02:38:21 +0200 Subject: [PATCH] added Scale constructor --- cicaprojekt/Scale.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cicaprojekt/Scale.java b/cicaprojekt/Scale.java index 09e8460..b51ddd9 100644 --- a/cicaprojekt/Scale.java +++ b/cicaprojekt/Scale.java @@ -3,6 +3,15 @@ package cicaprojekt; public class Scale extends Field { private Gate gateConnected; + public Scale(Gate gate){ + Menu.addTab(); + System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale(" + gate + ")"); + gateConnected = gate; + System.out.println("<" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.Scale()"); + Menu.removeTab(); + + } + public void onEntry() { Menu.addTab(); System.out.println(">" + "[" + ":" + this.getClass().getSimpleName() + "]" + Menu.tabulator + "Scale.onEntry()");