Package trclib.output
Class TrcDigitalOutput
java.lang.Object
trclib.output.TrcDigitalOutput
- Direct Known Subclasses:
FtcDigitalOutput
This class implements a platform independent Digital Output port device.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private static final String
protected static TrcElapsedTimer
-
Constructor Summary
ConstructorsConstructorDescriptionTrcDigitalOutput
(String instanceName) Constructor: Create an instance of the object. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
printElapsedTime
(TrcDbgTrace tracer) This method prints the elapsed time info using the given tracer.static void
setElapsedTimerEnabled
(boolean enabled) This method enables/disables the elapsed timers for performance monitoring.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.toString()
This method returns the instance name.
-
Field Details
-
moduleName
-
setOutputElapsedTimer
-
instanceName
-
-
Constructor Details
-
TrcDigitalOutput
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
This method returns the 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
This method prints the elapsed time info using the given tracer.- Parameters:
tracer
- specifies the tracer to be used to print the info.
-