private FinalSignalWs convertToRemoteFinalSignal(FinalSignal finalSignal) {
if (finalSignal == null) {
return null;
}
FinalSignalWs finalSignalWs = new FinalSignalWs();
finalSignalWs.setFinalSegment(this.convertToRemoteSegment(finalSignal.getFinalSegment()));
finalSignalWs.setFirstDerivatite(this.convertToRemoteSegment(finalSignal.getFirstDerivatite()));
finalSignalWs.setSecondDerivative(this.convertToRemoteSegment(finalSignal.getSecondDerivative()));
finalSignalWs.setThirdDerivative(this.convertToRemoteSegment(finalSignal.getThirdDerivative()));
finalSignalWs.setFourthDerivative(this.convertToRemoteSegment(finalSignal.getFourthDerivative()));
finalSignalWs.setExponential(this.convertToRemoteSegment(finalSignal.getExponential()));
return finalSignalWs;
}