Package api
Class Probe
- java.lang.Object
-
- api.Probe
-
- All Implemented Interfaces:
IPinListener
public class Probe extends java.lang.Object implements IPinListener
Implementation of IPinListener that prints the affected component's state to the console.
-
-
Constructor Summary
Constructors Constructor Description Probe(java.lang.String givenName)
Constructs a Probe with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
update(IComponent c)
Invoked by a Pin when its value changes.
-
-
-
Method Detail
-
update
public void update(IComponent c)
Description copied from interface:IPinListener
Invoked by a Pin when its value changes. The argument is the component to which the Pin belongs.- Specified by:
update
in interfaceIPinListener
- Parameters:
c
- parent component for the Pin invoking this method
-
-