mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/ObservationHelper.java
public static Observation createAudioObservation()
    {
        List<AudioSampleOfInterest> listSamples = new ArrayList<AudioSampleOfInterest>();
        AudioSampleOfInterest sampleOfInterest = new AudioSampleOfInterest(10L, 100L);
        listSamples.add(sampleOfInterest);
        
        AudioRecorder recorder = 
               new AudioRecorder(AudioRecorderEnum.MICROPHONE, "mic", 1);
        Double sampleRateKHz = 100.00;
        Long startTime = 10L;
        Long endTime = 200L;
        Long triggerTime = 100L;
       
        AudioMetadata audio = new AudioMetadata(
                listSamples,
                recorder,
                sampleRateKHz,
                startTime,
                endTime,
                triggerTime);
       
        return ObservationHelper.createBaseObservation()
                .withUuid(UUID.fromString("328da040-85bb-11e2-9e96-0800200c9a73")).withAudioMetadata(audio)
                .withDigitalMedia(ObservationHelper.createCompleteDigitalMedia());
    }
/**
     * This will create a complete observation for audio.  The {@link AudioMetadata} and {@link DigitalMedia} object
     * will have all fields filled out as much as possible.  This can be used to compare with something pull from the 
     * database to prove that it is actually persisted.  Fields will always contain the same info so this method if 
     * called multiple times will create a different object, but will be equal to the previous one.
     * @return 
     *      Observation of audio data
     */
This will create a complete observation for audio.  The  AudioMetadata and  DigitalMedia object
will have all fields filled out as much as possible.  This can be used to compare with something pull from the
database to prove that it is actually persisted.  Fields will always contain the same info so this method if
called multiple times will create a different object, but will be equal to the previous one.
@return
Observation of audio data
This will create a complete observation for audio . The AudioMetadata and DigitalMedia object will have all fields filled out as much as possible . This can be used to compare with something pull from the database to prove that it is actually persisted . Fields will always contain the same info so this method if called multiple times will create a different object but will be equal to the previous one . @return Observation of audio data
public static Observation createAudioObservation()
    {
        List<AudioSampleOfInterest> listSamples = new ArrayList<AudioSampleOfInterest>();
        AudioSampleOfInterest sampleOfInterest = new AudioSampleOfInterest(10L, 100L);
        listSamples.add(sampleOfInterest);
        AudioRecorder recorder = 
               new AudioRecorder(AudioRecorderEnum.MICROPHONE, "mic", 1);
        Double sampleRateKHz = 100.00;
        Long startTime = 10L;
        Long endTime = 200L;
        Long triggerTime = 100L;
        AudioMetadata audio = new AudioMetadata(
                listSamples,
                recorder,
                sampleRateKHz,
                startTime,
                endTime,
                triggerTime);
        return ObservationHelper.createBaseObservation()
                .withUuid(UUID.fromString("328da040-85bb-11e2-9e96-0800200c9a73")).withAudioMetadata(audio)
                .withDigitalMedia(ObservationHelper.createCompleteDigitalMedia());
    }
public static Observation createAudioObservation ( ) { List < AudioSampleOfInterest > listSamples = new ArrayList < AudioSampleOfInterest > ( ) ; AudioSampleOfInterest sampleOfInterest = new AudioSampleOfInterest ( 10L , 100L ) ; listSamples . add ( sampleOfInterest ) ; AudioRecorder recorder = new AudioRecorder ( AudioRecorderEnum . MICROPHONE , "mic" , 1 ) ; Double sampleRateKHz = 100.00 ; Long startTime = 10L ; Long endTime = 200L ; Long triggerTime = 100L ; AudioMetadata audio = new AudioMetadata ( listSamples , recorder , sampleRateKHz , startTime , endTime , triggerTime ) ; return ObservationHelper . createBaseObservation ( ) . withUuid ( UUID . fromString ( "328da040-85bb-11e2-9e96-0800200c9a73" ) ) . withAudioMetadata ( audio ) . withDigitalMedia ( ObservationHelper . createCompleteDigitalMedia ( ) ) ; }
This will create a complete observation for audio.
This will create a complete observation for audio .