java.lang.Object
java.lang.Thread
com.ogc.pharmagcode.Utils.Orologio
- All Implemented Interfaces:
Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Salva il momento corrente per valutare il timervoid
run()
void
setOrologio
(javafx.event.EventHandler<javafx.event.ActionEvent> e) Methods inherited from class java.lang.Thread
activeCount, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, toString, yield
-
Constructor Details
-
Orologio
public Orologio()
-
-
Method Details
-
chiediOrarioFormattato
- Returns:
- La stringa di orario formattato dd/MM/YY HH:mm:ss
-
chiediOrario
- Returns:
- L'orario corrente (con offset di debug) rispetto alla Zona Temporale di default
-
setOrologio
public void setOrologio(javafx.event.EventHandler<javafx.event.ActionEvent> e) - Parameters:
e
- la funzione da chiamare ogni secondo
-
iniziaTimer
public void iniziaTimer()Salva il momento corrente per valutare il timer -
confrontaTimer
public boolean confrontaTimer()- Returns:
- true se il timer è partito E sono passati più di 15 minuti, false altrimenti
-
run
public void run()
-