public class DipPublicationImp extends DipPublicationImpBase
name
destroyed
Constructor and Description |
---|
DipPublicationImp(DipFactory fact,
String topicName,
DipPublicationErrorHandler handler) |
Modifier and Type | Method and Description |
---|---|
void |
finalize()
Remove C++ implementation if user forgot to call
DipFactory.destroyPublication
|
protected DipFactory |
getFactory() |
void |
handleException(DipException ex)
Delegates to the error handler.
|
void |
send(DipData value,
DipTimestamp timestamp)
Send complex data object.
|
void |
send(DipData value,
DipTimestamp timestamp,
int dipQuality,
String qualityReason)
Send complex data object with quality information
|
protected void |
sendData(DipData data,
DipTimestamp timestamp)
generic send data method used by all send data implementations.
|
protected void |
setDestroyed()
Mark object as destoyed - will cause the C++ representation to be removed
|
void |
setQualityBad()
The quality of the last sent data is set to bad.
|
void |
setQualityBad(String reason)
As setQualityBad() but enables the user to pass a string to the clients explaining why there is a problem
|
void |
setQualityUncertain()
The quality of the last sent data is set to uncertain.
|
void |
setQualityUncertain(String reason)
As setQualityUncertain() but enables the user to pass a string to the clients explaining why there is a problem
|
getTopicName, send, send, send, send, send, send, send, send, send, send, send, send, send, send, send, send
isDestroyed, validate
public DipPublicationImp(DipFactory fact, String topicName, DipPublicationErrorHandler handler) throws DipException
DipException
protected DipFactory getFactory()
getFactory
in class DipPublicationImpBase
public void finalize()
protected void sendData(DipData data, DipTimestamp timestamp) throws DipException
sendData
in class DipPublicationImpBase
DipException
public void send(DipData value, DipTimestamp timestamp) throws DipException
DipPublication
value
- - data to be sent.timestamp
- - time data was obtained.DipException
public void send(DipData value, DipTimestamp timestamp, int dipQuality, String qualityReason) throws DipException
DipPublication
value
- - data to be sent.timestamp
- - time data was obtained.dipQuality
- - the quality of the dataqualityReason
- - the reason for the data qualityDipException
public void setQualityBad() throws DipException
DipPublication
DipException
public void setQualityBad(String reason) throws DipException
DipPublication
DipException
public void setQualityUncertain() throws DipException
DipPublication
DipException
public void setQualityUncertain(String reason) throws DipException
DipPublication
DipException
public void handleException(DipException ex)
protected void setDestroyed()
setDestroyed
in class FactoryProduct
Copyright © 2008–2017 CERN. All rights reserved.