Package io.openems.edge.core.host
Class UsbConfigurationWorker
java.lang.Object
io.openems.common.worker.AbstractWorker
io.openems.edge.core.host.UsbConfigurationWorker
This worker reads the actual USB configuration and stores it in the Host
configuration.
-
Field Summary
Fields inherited from class io.openems.common.worker.AbstractWorker
ALWAYS_WAIT_FOR_TRIGGER_NEXT_RUN, DO_NOT_WAIT, thread
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
forever()
This method is called in a loop forever until the Thread gets interrupted.protected int
Gets the cycleTime of this worker in [ms].Methods inherited from class io.openems.common.worker.AbstractWorker
activate, deactivate, modified, triggerNextRun
-
Constructor Details
-
UsbConfigurationWorker
-
-
Method Details
-
forever
protected void forever()Description copied from class:AbstractWorker
This method is called in a loop forever until the Thread gets interrupted.- Specified by:
forever
in classAbstractWorker
-
getCycleTime
protected int getCycleTime()Description copied from class:AbstractWorker
Gets the cycleTime of this worker in [ms].- > 0 sets the minimum execution time of one Cycle
- = 0 never wait between two consecutive executions of forever()
- < 0 causes the Cycle to sleep forever until 'triggerNextRun()' is called
- Specified by:
getCycleTime
in classAbstractWorker
- Returns:
- the cycleTime
-