Package com.enernoc.open.oadr2.model

Examples of com.enernoc.open.oadr2.model.DateTime


      assertEquals( "Extension should have the OADR2 namespace",
              XMLNS.OADR2.getNamespaceURI(), extension.getNamespace());
      Object pObj = extension.getPayload();
      assertNotNull( "Extension payload should not be null", pObj );
      assertTrue( "Extension payload should be an OadrSignedObject", pObj instanceof OadrSignedObject );
      OadrSignedObject payload = (OadrSignedObject)pObj;
      assertEquals( "Request ID should match what was sent",
              "test 1234", payload.getOadrDistributeEvent().getRequestID() );
  }
View Full Code Here


  @SuppressWarnings("unchecked")
    protected OadrSignedObject createEventPayload() {
    final XMLGregorianCalendar startDttm = xmlDataTypeFac.newXMLGregorianCalendar("2012-01-01T00:00:00Z");
    final ObjectFactory eiObjectFactory = new ObjectFactory();
   
    return new OadrSignedObject()
        .withOadrDistributeEvent( new OadrDistributeEvent()
            .withRequestID( "test 1234" )
            .withVtnID( "hi" )
          .withOadrEvents( new OadrEvent()
            .withEiEvent(
View Full Code Here

                        .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
                    ))
                .withEiEventSignals( new EiEventSignals()
                    .withEiEventSignals( new EiEventSignal()
                        .withSignalID("hi there")
                        .withCurrentValue(new CurrentValue(new PayloadFloatType(1.0f)))
                        .withSignalName("simple")
                        .withSignalType(SignalTypeEnumeratedType.LEVEL)
                        .withIntervals( new Intervals()
                            .withIntervals( new Interval()
                              .withStreamPayloadBases( eiObjectFactory.createSignalPayload(
View Full Code Here

                    .withEventStatus(EventStatusEnumeratedType.FAR)
                    .withPriority(1L)
                    .withEiMarketContext(new EiMarketContext(
                        new MarketContext("http://enernoc.com")))
                    .withCreatedDateTime(new DateTime(startDttm)))
                .withEiActivePeriod(new EiActivePeriod()
                    .withProperties(new Properties()
                        .withDtstart(new Dtstart(new DateTime(startDttm)))
                        .withDuration(new DurationPropType(new DurationValue("PT1M")))
                        .withTolerance( new Tolerance(new Tolerate(new DurationValue("PT5S"))))
                        .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
View Full Code Here

        .withOadrDistributeEvent( new OadrDistributeEvent()
            .withRequestID( "test 1234" )
            .withVtnID( "hi" )
          .withOadrEvents( new OadrEvent()
            .withEiEvent(
              new EiEvent()
                .withEiTarget( new EiTarget()
                    .withVenIDs("ven-1234") )
                .withEventDescriptor(new EventDescriptor()
                    .withEventID("event-1234")
                    .withModificationNumber(0)
View Full Code Here

                        .withDuration(new DurationPropType(new DurationValue("PT1M")))
                        .withTolerance( new Tolerance(new Tolerate(new DurationValue("PT5S"))))
                        .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
                    ))
                .withEiEventSignals( new EiEventSignals()
                    .withEiEventSignals( new EiEventSignal()
                        .withSignalID("hi there")
                        .withCurrentValue(new CurrentValue(new PayloadFloatType(1.0f)))
                        .withSignalName("simple")
                        .withSignalType(SignalTypeEnumeratedType.LEVEL)
                        .withIntervals( new Intervals()
View Full Code Here

                        .withDtstart(new Dtstart(new DateTime(startDttm)))
                        .withDuration(new DurationPropType(new DurationValue("PT1M")))
                        .withTolerance( new Tolerance(new Tolerate(new DurationValue("PT5S"))))
                        .withXEiNotification(new DurationPropType(new DurationValue("PT5S")))
                    ))
                .withEiEventSignals( new EiEventSignals()
                    .withEiEventSignals( new EiEventSignal()
                        .withSignalID("hi there")
                        .withCurrentValue(new CurrentValue(new PayloadFloatType(1.0f)))
                        .withSignalName("simple")
                        .withSignalType(SignalTypeEnumeratedType.LEVEL)
View Full Code Here

            .withRequestID( "test 1234" )
            .withVtnID( "hi" )
          .withOadrEvents( new OadrEvent()
            .withEiEvent(
              new EiEvent()
                .withEiTarget( new EiTarget()
                    .withVenIDs("ven-1234") )
                .withEventDescriptor(new EventDescriptor()
                    .withEventID("event-1234")
                    .withModificationNumber(0)
                    .withEventStatus(EventStatusEnumeratedType.FAR)
View Full Code Here

          .withOadrEvents( new OadrEvent()
            .withEiEvent(
              new EiEvent()
                .withEiTarget( new EiTarget()
                    .withVenIDs("ven-1234") )
                .withEventDescriptor(new EventDescriptor()
                    .withEventID("event-1234")
                    .withModificationNumber(0)
                    .withEventStatus(EventStatusEnumeratedType.FAR)
                    .withPriority(1L)
                    .withEiMarketContext(new EiMarketContext(
View Full Code Here

                .withEventDescriptor(new EventDescriptor()
                    .withEventID("event-1234")
                    .withModificationNumber(0)
                    .withEventStatus(EventStatusEnumeratedType.FAR)
                    .withPriority(1L)
                    .withEiMarketContext(new EiMarketContext(
                        new MarketContext("http://enernoc.com")))
                    .withCreatedDateTime(new DateTime(startDttm)))
                .withEiActivePeriod(new EiActivePeriod()
                    .withProperties(new Properties()
                        .withDtstart(new Dtstart(new DateTime(startDttm)))
View Full Code Here

TOP

Related Classes of com.enernoc.open.oadr2.model.DateTime

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.