mil.dod.th.ose.integration/src/mil/dod/th/ose/controller/integration/ObservationHelper.java
public static Observation createVideoObservation()
    {
        PixelResolution resolution = new PixelResolution(100, 100);
        
        List<VideoSampleOfInterest> samplesOfInterest = new ArrayList<VideoSampleOfInterest>();
        samplesOfInterest.add(new VideoSampleOfInterest(new PixelCircle(new PixelPosition(1, 2), 20), null,
                new Direction(DirectionEnum.FN, "test"), 10L, 100L));
        samplesOfInterest.add(new VideoSampleOfInterest(null,
                new PixelRectangle(new PixelPosition(3, 5), new PixelPosition(8, 9)), 
                new Direction(DirectionEnum.LR_NF, "b"), 5L, 50L));
        
        Camera camera = new Camera(7, "other-camera", CameraTypeEnum.IR);
        
        Double framesPerSecond = 100.00;
        Double zoom = 100.00;
        Boolean color = false;
        Long startTime = 10L;
        Long endTime = 300L;
        
        VideoMetadata video = new VideoMetadata(resolution,
                samplesOfInterest,
                camera,
                framesPerSecond,
                startTime,
                endTime,
                zoom,
                color);
        
        return ObservationHelper.createBaseObservation()
                .withUuid(UUID.fromString("328da040-85bb-11e2-9e96-0800200c9a74")).withVideoMetadata(video)
                .withDigitalMedia(ObservationHelper.createCompleteDigitalMedia());
    }
/**
     * This will create a complete observation for video.  The {@link VideoMetadata} 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 video data
     */
This will create a complete observation for video.  The  VideoMetadata 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 video data
This will create a complete observation for video . The VideoMetadata 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 video data
public static Observation createVideoObservation()
    {
        PixelResolution resolution = new PixelResolution(100, 100);
        List<VideoSampleOfInterest> samplesOfInterest = new ArrayList<VideoSampleOfInterest>();
        samplesOfInterest.add(new VideoSampleOfInterest(new PixelCircle(new PixelPosition(1, 2), 20), null,
                new Direction(DirectionEnum.FN, "test"), 10L, 100L));
        samplesOfInterest.add(new VideoSampleOfInterest(null,
                new PixelRectangle(new PixelPosition(3, 5), new PixelPosition(8, 9)), 
                new Direction(DirectionEnum.LR_NF, "b"), 5L, 50L));
        Camera camera = new Camera(7, "other-camera", CameraTypeEnum.IR);
        Double framesPerSecond = 100.00;
        Double zoom = 100.00;
        Boolean color = false;
        Long startTime = 10L;
        Long endTime = 300L;
        VideoMetadata video = new VideoMetadata(resolution,
                samplesOfInterest,
                camera,
                framesPerSecond,
                startTime,
                endTime,
                zoom,
                color);
        return ObservationHelper.createBaseObservation()
                .withUuid(UUID.fromString("328da040-85bb-11e2-9e96-0800200c9a74")).withVideoMetadata(video)
                .withDigitalMedia(ObservationHelper.createCompleteDigitalMedia());
    }
public static Observation createVideoObservation ( ) { PixelResolution resolution = new PixelResolution ( 100 , 100 ) ; List < VideoSampleOfInterest > samplesOfInterest = new ArrayList < VideoSampleOfInterest > ( ) ; samplesOfInterest . add ( new VideoSampleOfInterest ( new PixelCircle ( new PixelPosition ( 1 , 2 ) , 20 ) , null , new Direction ( DirectionEnum . FN , "test" ) , 10L , 100L ) ) ; samplesOfInterest . add ( new VideoSampleOfInterest ( null , new PixelRectangle ( new PixelPosition ( 3 , 5 ) , new PixelPosition ( 8 , 9 ) ) , new Direction ( DirectionEnum . LR_NF , "b" ) , 5L , 50L ) ) ; Camera camera = new Camera ( 7 , "other-camera" , CameraTypeEnum . IR ) ; Double framesPerSecond = 100.00 ; Double zoom = 100.00 ; Boolean color = false ; Long startTime = 10L ; Long endTime = 300L ; VideoMetadata video = new VideoMetadata ( resolution , samplesOfInterest , camera , framesPerSecond , startTime , endTime , zoom , color ) ; return ObservationHelper . createBaseObservation ( ) . withUuid ( UUID . fromString ( "328da040-85bb-11e2-9e96-0800200c9a74" ) ) . withVideoMetadata ( video ) . withDigitalMedia ( ObservationHelper . createCompleteDigitalMedia ( ) ) ; }
This will create a complete observation for video.
This will create a complete observation for video .