|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.ale.server.EventCycle
public class EventCycle
This class represents an event cycle. It collects the tags and manages the reports.
Constructor Summary | |
---|---|
EventCycle(ReportsGenerator generator)
Constructor sets parameter and starts thread. |
Method Summary | |
---|---|
void |
addTag(Tag tag)
This method adds a tag to this event cycle. |
void |
addTag(org.fosstrak.reader.rprm.core.msg.notification.TagType tag)
compatibility reasons. |
java.util.Set<Tag> |
getLastEventCycleTags()
returns the set of tags from the previous EventCycle run. |
java.lang.String |
getName()
This method returns the name of this event cycle. |
int |
getRounds()
|
java.util.Set<Tag> |
getTags()
This method return all tags of this event cycle. |
boolean |
isTerminated()
This method indicates if this event cycle is terminated or not. |
void |
join()
thread synchronizer for the end of this event cycle. if the event cycle has already finished, then the method returns immediately. otherwise the thread waits for the finish. |
void |
launch()
starts this EventCycle. |
void |
run()
This method is the main loop of the event cycle in which the tags will be collected. |
void |
stop()
This method stops the thread. |
void |
update(java.util.Observable o,
java.lang.Object arg)
implementation of the observer interface for tags. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventCycle(ReportsGenerator generator) throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
generator
- to which this event cycle belongs to
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
Method Detail |
---|
public java.util.Set<Tag> getTags()
public void addTag(Tag tag) throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse, org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
tag
- to add
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException
- if the tag is not valid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
public void addTag(org.fosstrak.reader.rprm.core.msg.notification.TagType tag) throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse, org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
tag
- to add
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if an implementation exception occures
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException
- if the tag is not valid
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
public void update(java.util.Observable o, java.lang.Object arg)
update
in interface java.util.Observer
o
- an observable object that triggered the updatearg
- the arguments passed by the observablepublic void stop()
public java.lang.String getName()
public boolean isTerminated()
public void run()
run
in interface java.lang.Runnable
public void launch()
public java.util.Set<Tag> getLastEventCycleTags()
public int getRounds()
public void join() throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |