com.deltax.util.listener
Class Signal

java.lang.Object
  extended bycom.deltax.util.listener.Signal
Direct Known Subclasses:
ExceptionSignal, MsgSignal, NamedSignal, ObjectSignal, TimeStampedSignal, TSignalSource.SignalType1, TSignalSource.SignalType2

public class Signal
extends java.lang.Object

An anonymous signal class. This class doesn't carry any other information but the source of the signal, and can say wether or not the source supports exception signals.

Version:
1.0
Author:
Cristiano Sadun

Constructor Summary
Signal(java.lang.Object source)
          Build a signal with the given source.
 
Method Summary
 java.lang.Object getSource()
          Return the stated source of the signal.
 boolean sourceSupportsExceptionSignals()
          Return true if the source supports exception signals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signal

public Signal(java.lang.Object source)
Build a signal with the given source.

Parameters:
source - the stated source of the signal.
Method Detail

getSource

public java.lang.Object getSource()
Return the stated source of the signal.

Returns:
the stated source of the signal.

sourceSupportsExceptionSignals

public boolean sourceSupportsExceptionSignals()
Return true if the source supports exception signals.

Returns:
true if the source supports exception signals.