Main Page | Features | Central Services | csv-Files | Types | Transfer | Access | API-C | API-.NET | API-Java | Examples | Downloads
page generated on 31.05.2023 - 04:45
Public Member Functions | List of all members
de.desy.tine.accesslayer.ChannelReadEvent Class Reference

ChannelEvent describes a read event on the channel. More...

Inherits EventObject.

Public Member Functions

 ChannelReadEvent (Channel source, TDataType rawValue, int status, String statusString, boolean successful)
 Construct a new read event. More...
 
Channel getChannel ()
 Returns the channel, which is always the source of this event. More...
 
TDataType getRawValue ()
 Returns the raw value that was read from the channel. More...
 
int getStatus ()
 Returns the status code of the read action. More...
 
String getStatusString ()
 Returns the status code in a human readable text. More...
 
boolean isSuccessful ()
 Returns true if this event describes an action completed successfully, or false if the action was completed with an error. More...
 

Detailed Description

ChannelEvent describes a read event on the channel.

It contains the reference to the source channel as well as the read value and status.

Author
Jaka Bobnar

Constructor & Destructor Documentation

◆ ChannelReadEvent()

de.desy.tine.accesslayer.ChannelReadEvent.ChannelReadEvent ( Channel  source,
TDataType  rawValue,
int  status,
String  statusString,
boolean  successful 
)

Construct a new read event.

Parameters
sourcethe source of the event
rawValuethe value
statusthe status code
statusStringthe human readable representation of the status code
successfulindicates if this event describes a success (true) or an error (false)

Member Function Documentation

◆ getChannel()

Channel de.desy.tine.accesslayer.ChannelReadEvent.getChannel ( )

Returns the channel, which is always the source of this event.

Returns
the source channel

◆ getRawValue()

TDataType de.desy.tine.accesslayer.ChannelReadEvent.getRawValue ( )

Returns the raw value that was read from the channel.

Returns
the raw value

◆ getStatus()

int de.desy.tine.accesslayer.ChannelReadEvent.getStatus ( )

Returns the status code of the read action.

Returns
the status code

◆ getStatusString()

String de.desy.tine.accesslayer.ChannelReadEvent.getStatusString ( )

Returns the status code in a human readable text.

Returns
the status code as a string

◆ isSuccessful()

boolean de.desy.tine.accesslayer.ChannelReadEvent.isSuccessful ( )

Returns true if this event describes an action completed successfully, or false if the action was completed with an error.

Returns
true if successful or false if an error

The documentation for this class was generated from the following file: