Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD
 

com.newstep.solid.processor
Class SequentialEventHandler
com.newstep.solid.processor.EventHandler
  |
  +--com.newstep.solid.processor.SequentialEventHandler
Direct Known Subclasses:
       TestEventSequentialHandler, ThreePassProcessorTestCase.BrokenSequentialHandler

public abstract class SequentialEventHandler      
Provides the basis for implementing buisness logic when multiple events need
to be processed in order one at a time.
Abstract.
 
Links:
Kernel Association Association Link
to Class Event
the Event that will be handled
Associates type:
aggregation
Client cardinality:
0..*
Client navigability:
NOT NAVIGABLE
Client visibility:
private
Directed.
Supplier cardinality:
1
Supplier navigability:
NAVIGABLE
Supplier visibility:
private
Custom properties
link:
aggregation
 
Generalization Generalization Link
to Class EventHandler
Provides the basis for implementing buisness logic when multiple events need
to be processed in order one at a time.
 
 

Field Summary
private Event
private int
Constructor Summary
public void
Method Summary
public void
private boolean
private boolean
Field Detail
currentEvent
private Event currentEvent
the Event that will be handled
Multiplicity:
1
 

outstandingEvents
private int outstandingEvents
Counter of outstanding evens (i.e. those that should have been handled
already but are still waiting for a previous one to finish).
Multiplicity:
1
 
Constructor Detail
SequentialEventHandler
public void SequentialEventHandler ()
 
default constructor
Stereotype:
create
 
Method Detail
doHandle
public void doHandle ()
 
Throws:
EventHandlerException
 

postHandle
private boolean postHandle ()
 
Determines if the event at the begining of the buffer can be handled
Return:
true if there's an event ready to be handled.
 

preHandle
private boolean preHandle ()
 
Determines if the event at the begining of the buffer can be handled
Return:
true if there's an event ready to be handled.
 

Class
Tree
          
SUMMARY: INNER | FIELD | CONSTR | METHODDETAIL: FIELD | CONSTR | METHOD