mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
68 lines
1.1 KiB
Java
68 lines
1.1 KiB
Java
package module.decode.state;
|
|
|
|
public class DecoderStateEvent
|
|
{
|
|
private Object mSource;
|
|
private Event mEvent;
|
|
private State mState;
|
|
private long mFrequency;
|
|
|
|
public DecoderStateEvent( Object source, Event event, State state )
|
|
{
|
|
mSource = source;
|
|
mEvent = event;
|
|
mState = state;
|
|
}
|
|
|
|
public DecoderStateEvent( Object source, Event event, State state, long frequency )
|
|
{
|
|
this( source, event, state );
|
|
|
|
mFrequency = frequency;
|
|
}
|
|
|
|
public String toString()
|
|
{
|
|
StringBuilder sb = new StringBuilder();
|
|
|
|
sb.append( "Decoder State Event - source[" + mSource.getClass() +
|
|
"] event[" + mEvent.toString() +
|
|
"] state[" + mState.toString() +
|
|
"] frequency [" + mFrequency + "]" );
|
|
|
|
return sb.toString();
|
|
}
|
|
|
|
public Object getSource()
|
|
{
|
|
return mSource;
|
|
}
|
|
|
|
public Event getEvent()
|
|
{
|
|
return mEvent;
|
|
}
|
|
|
|
public State getState()
|
|
{
|
|
return mState;
|
|
}
|
|
|
|
public long getFrequency()
|
|
{
|
|
return mFrequency;
|
|
}
|
|
|
|
public enum Event
|
|
{
|
|
ALWAYS_UNSQUELCH,
|
|
CHANGE_CALL_TIMEOUT,
|
|
CONTINUATION,
|
|
DECODE,
|
|
END,
|
|
RESET,
|
|
SOURCE_FREQUENCY,
|
|
START,
|
|
TRAFFIC_CHANNEL_ALLOCATION;
|
|
}
|
|
} |