Class CountdownAgent
- java.lang.Object
-
- jadex.examples.presentationtimer.display.CountdownAgent
-
- All Implemented Interfaces:
ICountdownGUIService
,ICountdownService
public class CountdownAgent extends java.lang.Object implements ICountdownService, ICountdownGUIService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.examples.presentationtimer.common.ICountdownService
ICountdownService.ICountdownListener
-
-
Constructor Summary
Constructors Constructor Description CountdownAgent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>
addListener(ICountdownService.ICountdownListener l)
void
agentCreated()
IFuture<State>
getState()
IFuture<java.lang.String>
getTime()
void
informStateUpdated(State state)
void
informTimeUpdated(java.lang.String timeString)
ISubscriptionIntermediateFuture<State>
registerForState()
ISubscriptionIntermediateFuture<java.lang.String>
registerForTime()
IFuture<java.lang.Void>
reset()
void
setController(ICountdownController controller)
IFuture<java.lang.Void>
start()
IFuture<java.lang.Void>
stop()
-
-
-
Method Detail
-
addListener
public IFuture<java.lang.Void> addListener(ICountdownService.ICountdownListener l)
- Specified by:
addListener
in interfaceICountdownService
-
registerForState
public ISubscriptionIntermediateFuture<State> registerForState()
- Specified by:
registerForState
in interfaceICountdownService
-
registerForTime
public ISubscriptionIntermediateFuture<java.lang.String> registerForTime()
- Specified by:
registerForTime
in interfaceICountdownService
-
getState
public IFuture<State> getState()
- Specified by:
getState
in interfaceICountdownService
-
getTime
public IFuture<java.lang.String> getTime()
- Specified by:
getTime
in interfaceICountdownService
-
start
public IFuture<java.lang.Void> start()
- Specified by:
start
in interfaceICountdownService
-
stop
public IFuture<java.lang.Void> stop()
- Specified by:
stop
in interfaceICountdownService
-
reset
public IFuture<java.lang.Void> reset()
- Specified by:
reset
in interfaceICountdownService
-
informTimeUpdated
public void informTimeUpdated(java.lang.String timeString)
- Specified by:
informTimeUpdated
in interfaceICountdownGUIService
-
informStateUpdated
public void informStateUpdated(State state)
- Specified by:
informStateUpdated
in interfaceICountdownGUIService
-
setController
public void setController(ICountdownController controller)
- Specified by:
setController
in interfaceICountdownGUIService
-
agentCreated
public void agentCreated()
-
-