Files
sdrtrunk/src/decode/tait/Tait1200ChannelState.java

64 lines
1.8 KiB
Java

/*******************************************************************************
* SDR Trunk
* Copyright (C) 2014 Dennis Sheirer
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
******************************************************************************/
package decode.tait;
import message.Message;
import controller.state.AuxChannelState;
import controller.state.ChannelState;
public class Tait1200ChannelState extends AuxChannelState
{
private Tait1200ActivitySummary mActivitySummary;
public Tait1200ChannelState( ChannelState parentState )
{
super( parentState );
mActivitySummary =
new Tait1200ActivitySummary( parentState.getAliasList() );
}
@Override
public void reset()
{
}
@Override
public void fade()
{
}
@Override
public void receive( Message message )
{
if( message instanceof Tait1200MessageA )
{
mActivitySummary.receive( message );
// mParentChannelState.receiveCallEvent(
// Tait1200CallEvent.getLJ1200Event( (Tait1200Message)message ) );
}
}
@Override
public String getActivitySummary()
{
return mActivitySummary.getSummary();
}
}