Package trclib.output

Class TrcDigitalOutput

java.lang.Object
trclib.output.TrcDigitalOutput
Direct Known Subclasses:
FtcDigitalOutput

public abstract class TrcDigitalOutput extends Object
This class implements a platform independent Digital Output port device.
  • Field Details

    • moduleName

      private static final String moduleName
    • setOutputElapsedTimer

      protected static TrcElapsedTimer setOutputElapsedTimer
    • instanceName

      private final String instanceName
  • Constructor Details

    • TrcDigitalOutput

      public TrcDigitalOutput(String instanceName)
      Constructor: Create an instance of the object.
      Parameters:
      instanceName - specifies the instance name.
  • Method Details

    • setState

      public abstract void setState(boolean state)
      This method is provided by the platform dependent digital output port device to set the state of the output port.
      Parameters:
      state - specifies state of the output port.
    • toString

      public String toString()
      This method returns the instance name.
      Overrides:
      toString in class Object
      Returns:
      instance name.
    • setElapsedTimerEnabled

      public static void setElapsedTimerEnabled(boolean enabled)
      This method enables/disables the elapsed timers for performance monitoring.
      Parameters:
      enabled - specifies true to enable elapsed timers, false to disable.
    • printElapsedTime

      public static void printElapsedTime(TrcDbgTrace tracer)
      This method prints the elapsed time info using the given tracer.
      Parameters:
      tracer - specifies the tracer to be used to print the info.