X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=net.mograsim.logic.ui%2Fsrc%2Fnet%2Fmograsim%2Flogic%2Fui%2Fmodel%2Fwires%2FGUIWire.java;h=33be875fddc4e9c0cb12f524532b6d7b3ddd9eec;hb=64031e27d6b607e5475d081f93581960ef5a82b4;hp=db6d440759ea465153d91628a98b675d1fdc9456;hpb=67c7e16eac6ef555f7ebe0cbe6048598d7f1187e;p=Mograsim.git diff --git a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/GUIWire.java b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/GUIWire.java index db6d4407..33be875f 100644 --- a/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/GUIWire.java +++ b/net.mograsim.logic.ui/src/net/mograsim/logic/ui/model/wires/GUIWire.java @@ -312,6 +312,8 @@ public class GUIWire /** * Returns whether this {@link GUIWire} has a logic model binding or not. + * + * @author Daniel Kirschten */ public boolean hasLogicModelBinding() { @@ -321,12 +323,25 @@ public class GUIWire /** * If this {@link GUIWire} has a logic model binding, delegates to {@link Wire#forceValues(BitVector)} for the {@link Wire} * corresponding to this {@link GUIWire}. + * + * @author Daniel Kirschten */ public void forceWireValues(BitVector values) { end.getWire().forceValues(values); } + /** + * If this {@link GUIWire} has a logic model binding, delegates to {@link ReadEnd#getValues()} for the {@link ReadEnd} corresponding to + * this {@link GUIWire}. + * + * @author Daniel Kirschten + */ + public BitVector getWireValues() + { + return end.getValues(); + } + // listeners // @formatter:off