public class PatientBroadcaster<RecordType>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected double |
binTimespan |
protected CorrelationFilter<RecordType> |
correlationFilter |
protected CorrelationNotice<RecordType> |
correlationProxy |
protected int |
fullCount |
protected double |
lastTime |
protected Correlation<RecordType> |
pendingCorrelation |
Constructor and Description |
---|
PatientBroadcaster(MessageCenter aLocalCenter)
Creates a new instance of PatientBroadcaster
|
Modifier and Type | Method and Description |
---|---|
void |
addCorrelationNoticeListener(CorrelationNotice<RecordType> listener)
Register the listener as a receiver of Correlation notices from this
correlator.
|
void |
binTimespanChanged(Correlator<?,RecordType,?> sender,
double newTimespan)
Handle the bin timespan changed event.
|
void |
correlationFilterChanged(Correlator<?,RecordType,?> sender,
CorrelationFilter<RecordType> newFilter)
Handle the correlation filter changed event.
|
void |
newCorrelation(BinAgent<RecordType> sender,
Correlation<RecordType> correlation)
Handle the BinListener event and determine if we should cache it or post it.
|
protected void |
postCorrelation(Correlation<RecordType> correlation)
Post the correlation.
|
void |
removeCorrelationNoticeListener(CorrelationNotice<RecordType> listener)
Unregister the listener as a receiver of Correlation notices from this
correlator.
|
void |
sourceAdded(Correlator<?,RecordType,?> sender,
java.lang.String name,
int newCount)
Handle the source added event.
|
void |
sourceRemoved(Correlator<?,RecordType,?> sender,
java.lang.String name,
int newCount)
Handle the source removed event.
|
void |
willReset(BinAgent<RecordType> sender)
Implement BinListener interface.
|
void |
willStartMonitoring(Correlator<?,RecordType,?> sender)
Handle the advance notice of the correlator starting.
|
void |
willStopMonitoring(Correlator<?,RecordType,?> sender)
Handle the advance notice of the correlator stopping.
|
protected double binTimespan
protected double lastTime
protected Correlation<RecordType> pendingCorrelation
protected transient int fullCount
protected CorrelationNotice<RecordType> correlationProxy
protected CorrelationFilter<RecordType> correlationFilter
public PatientBroadcaster(MessageCenter aLocalCenter)
public void newCorrelation(BinAgent<RecordType> sender, Correlation<RecordType> correlation)
newCorrelation
in interface BinListener<RecordType>
sender
- The bin agent that published the new correlation.correlation
- The new correlation.public void binTimespanChanged(Correlator<?,RecordType,?> sender, double newTimespan)
sender
- The correlator whose timespan bin has changed.newTimespan
- The new timespan used by the correlator.public void addCorrelationNoticeListener(CorrelationNotice<RecordType> listener)
public void removeCorrelationNoticeListener(CorrelationNotice<RecordType> listener)
protected void postCorrelation(Correlation<RecordType> correlation)
correlation
- The correlation to post.public void willReset(BinAgent<RecordType> sender)
willReset
in interface BinListener<RecordType>
sender
- The bin agent who sent this message.public void sourceAdded(Correlator<?,RecordType,?> sender, java.lang.String name, int newCount)
sender
- The correlator to which the source has been added.name
- The name identifying the new source.newCount
- The new number of sources correlated.public void sourceRemoved(Correlator<?,RecordType,?> sender, java.lang.String name, int newCount)
sender
- The correlator from which the source has been removed.name
- The name identifying the new source.newCount
- The new number of sources correlated.public void willStopMonitoring(Correlator<?,RecordType,?> sender)
sender
- The correlator that will stop.public void willStartMonitoring(Correlator<?,RecordType,?> sender)
sender
- The correlator that will start.public void correlationFilterChanged(Correlator<?,RecordType,?> sender, CorrelationFilter<RecordType> newFilter)
sender
- The correlator whose correlation filter has changed.newFilter
- The new correlation filter to use.