Package org.opengis.temporal

Examples of org.opengis.temporal.ClockTime


        NamedIdentifier name2 = new NamedIdentifier(Citations.CRS, "Julian calendar");
        TemporalReferenceSystem frame1 = new DefaultTemporalReferenceSystem(name1, null);
        TemporalReferenceSystem frame2 = new DefaultTemporalReferenceSystem(name2, null);
        Number[] clockTime1 = {0, 0, 0};
        Number[] clockTime2 = {12, 0, 0.0};
        ClockTime clocktime1 = new DefaultClockTime(frame1, null, clockTime1);
        ClockTime clocktime2 = new DefaultClockTime(frame2, null, clockTime2);
        ClockTime utcReference1 = new DefaultClockTime(frame1, null, clockTime1);
        ClockTime utcReference2 = new DefaultClockTime(frame2, null, clockTime2);
        clock1 = new DefaultClock(name1, null, new SimpleInternationalString("reference event"), clocktime1, utcReference1);
        clock2 = new DefaultClock(name2, null, new SimpleInternationalString("description"), clocktime2, utcReference2);
    }
View Full Code Here


    /**
     * Test of getReferenceTime method, of class DefaultClock.
     */
    @Test
    public void testGetReferenceTime() {
        ClockTime result = clock1.getReferenceTime();
        assertFalse(clock2.getReferenceTime().equals(result));
    }
View Full Code Here

    /**
     * Test of getUTCReference method, of class DefaultClock.
     */
    @Test
    public void testGetUTCReference() {
        ClockTime result = clock1.getUTCReference();
        assertFalse(clock2.getUTCReference().equals(result));
    }
View Full Code Here

    /**
     * Test of setReferenceTime method, of class DefaultClock.
     */
    @Test
    public void testSetReferenceTime() {
        ClockTime result = clock1.getReferenceTime();
        ((DefaultClock) clock1).setReferenceTime(new DefaultClockTime(clock1, IndeterminateValue.UNKNOWN, null));
        assertFalse(clock1.getReferenceTime().equals(result));
    }
View Full Code Here

    /**
     * Test of setUtcReference method, of class DefaultClock.
     */
    @Test
    public void testSetUtcReference() {
        ClockTime result = clock1.getUTCReference();
        ((DefaultClock) clock1).setUtcReference(new DefaultClockTime(clock1, IndeterminateValue.UNKNOWN, null));
        assertFalse(clock1.getUTCReference().equals(result));
    }
View Full Code Here

    @Test
    public void testDateTrans_CalendarDate_ClockTime() {
        int[] cal = {2012, 9, 10};
        CalendarDate calendarDate = new DefaultCalendarDate(calendar1, IndeterminateValue.NOW, new SimpleInternationalString("new Era"), cal);
        Number[] clock = {12, 10, 5.488};
        ClockTime clockTime = new DefaultClockTime(calendar1, IndeterminateValue.NOW, clock);
        JulianDate result = calendar1.dateTrans(calendarDate, clockTime);
        assertTrue(calendar2.dateTrans(calendarDate, clockTime).equals(result));
    }
View Full Code Here

TOP

Related Classes of org.opengis.temporal.ClockTime

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.