Package jadex.micro.examples.lottery
Class LotteryAgent
- java.lang.Object
- 
- jadex.micro.examples.lottery.LotteryAgent
 
- 
- All Implemented Interfaces:
- ILotteryService
 
 public class LotteryAgent extends java.lang.Object implements ILotteryService 
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentprotected java.util.ArrayList<java.lang.String>openitemsprotected java.util.Collection<SubscriptionIntermediateFuture<java.lang.String>>subscriptions
 - 
Constructor SummaryConstructors Constructor Description LotteryAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbody()IFuture<java.lang.Boolean>claimItem(java.lang.String item)voidkilled()ISubscriptionIntermediateFuture<java.lang.String>subscribeToLottery()
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent 
 - 
openitemsprotected java.util.ArrayList<java.lang.String> openitems 
 - 
subscriptionsprotected java.util.Collection<SubscriptionIntermediateFuture<java.lang.String>> subscriptions 
 
- 
 - 
Method Detail- 
bodypublic void body() 
 - 
killedpublic void killed() 
 - 
subscribeToLotterypublic ISubscriptionIntermediateFuture<java.lang.String> subscribeToLottery() - Specified by:
- subscribeToLotteryin interface- ILotteryService
 
 - 
claimItempublic IFuture<java.lang.Boolean> claimItem(java.lang.String item) - Specified by:
- claimItemin interface- ILotteryService
 
 
- 
 
-