Updates SettingsManager to use jackson xml serialization. Final

testing on all changes to xml serialization.
This commit is contained in:
Denny
2017-12-21 19:59:11 -05:00
parent 1d2d9e8630
commit 26b97f09b7
21 changed files with 469 additions and 433 deletions

View File

@@ -314,7 +314,10 @@ public class Channel extends Configuration implements Listener<FrequencyChangeEv
*/
public void setDecodeConfiguration(DecodeConfiguration config)
{
mDecodeConfiguration = config;
if(config != null)
{
mDecodeConfiguration = config;
}
}
/**
@@ -332,7 +335,10 @@ public class Channel extends Configuration implements Listener<FrequencyChangeEv
*/
public void setAuxDecodeConfiguration(AuxDecodeConfiguration config)
{
mAuxDecodeConfiguration = config;
if(config != null)
{
mAuxDecodeConfiguration = config;
}
}
/**
@@ -350,7 +356,10 @@ public class Channel extends Configuration implements Listener<FrequencyChangeEv
*/
public void setSourceConfiguration(SourceConfiguration config)
{
mSourceConfiguration = config;
if(config != null)
{
mSourceConfiguration = config;
}
//Clear the tune channel object so that it can be recreated if the
//source configuration changes
@@ -371,7 +380,10 @@ public class Channel extends Configuration implements Listener<FrequencyChangeEv
*/
public void setEventLogConfiguration(EventLogConfiguration config)
{
mEventLogConfiguration = config;
if(config != null)
{
mEventLogConfiguration = config;
}
}
/**
@@ -388,7 +400,10 @@ public class Channel extends Configuration implements Listener<FrequencyChangeEv
*/
public void setRecordConfiguration(RecordConfiguration config)
{
mRecordConfiguration = config;
if(config != null)
{
mRecordConfiguration = config;
}
}
/**

View File

@@ -297,13 +297,13 @@ public class ChannelProcessingManager implements ChannelEventListener
if(!recorders.isEmpty())
{
/* Add baseband recorder */
/* Add baseband recorder */
if((recorders.contains(RecorderType.BASEBAND) && channel.getChannelType() == Channel.ChannelType.STANDARD))
{
processingChain.addModule(mRecorderManager.getBasebandRecorder(channel.toString()));
}
/* Add traffic channel baseband recorder */
/* Add traffic channel baseband recorder */
if(recorders.contains(RecorderType.TRAFFIC_BASEBAND) && channel.getChannelType() == Channel.ChannelType.TRAFFIC)
{
processingChain.addModule(mRecorderManager.getBasebandRecorder(channel.toString()));