Package api

Class 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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Probe

        public Probe​(java.lang.String givenName)
        Constructs a Probe with the given name.
        Parameters:
        givenName - text identifier to use for this probe
    • 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 interface IPinListener
        Parameters:
        c - parent component for the Pin invoking this method