Package com.enernoc.open.oadr2.model

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


      .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

                    .withSignalID("hi there")
                    .withCurrentValue(new CurrentValue(new PayloadFloat(1.0f)))
                    .withSignalName("simple")
                    .withSignalType(SignalTypeEnumeratedType.LEVEL)
                    .withIntervals( new Intervals()
                        .withIntervals( new Interval()
                          .withStreamPayloadBase( oadrTypes.createSignalPayload(
                              new SignalPayload(new PayloadFloat(1.0f))))
                          .withDuration( new DurationPropType(new DurationValue("PT1M")))
                          .withUid(new Uid("abc"))
                        )
View Full Code Here

                .withEiEventSignals( new EiEventSignal()
                    .withSignalID("hi there")
                    .withCurrentValue(new CurrentValue(new PayloadFloat(1.0f)))
                    .withSignalName("simple")
                    .withSignalType(SignalTypeEnumeratedType.LEVEL)
                    .withIntervals( new Intervals()
                        .withIntervals( new Interval()
                          .withStreamPayloadBase( oadrTypes.createSignalPayload(
                              new SignalPayload(new PayloadFloat(1.0f))))
                          .withDuration( new DurationPropType(new DurationValue("PT1M")))
                          .withUid(new Uid("abc"))
View Full Code Here

                .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)))
                    .withDuration(new DurationPropType(new DurationValue("PT1M")))
View Full Code Here

      assertEquals("oadrDistributeEvent", extension.getElementName());
      assertEquals(OADR2_XMLNS, extension.getNamespace());
      Object pObj = extension.getPayload();
      assertNotNull( pObj );
      assertTrue( pObj instanceof OadrDistributeEvent );
      OadrDistributeEvent payload = (OadrDistributeEvent)pObj;
        assertEquals( payload1, payload );
      assertEquals("test-123", payload.getRequestID());
  }
View Full Code Here

 
  protected OadrDistributeEvent createEventPayload() {
    final XMLGregorianCalendar startDttm = xmlDataTypeFac.newXMLGregorianCalendar("2012-01-01T00:00:00Z");
    final ObjectFactory oadrTypes = new ObjectFactory();
   
    return new OadrDistributeEvent()
      .withRequestID("test-123")
      .withVtnID("vtn-123")
      .withOadrEvents( new OadrEvent()
        .withEiEvent(
          new EiEvent()
View Full Code Here

    final ObjectFactory oadrTypes = new ObjectFactory();
   
    return new OadrDistributeEvent()
      .withRequestID("test-123")
      .withVtnID("vtn-123")
      .withOadrEvents( new OadrEvent()
        .withEiEvent(
          new EiEvent()
            .withEiTarget( new EiTarget()
                .withVenIDs("ven-1234") )
            .withEventDescriptor(new EventDescriptor()
View Full Code Here

    @Test public void testSerialize() throws Exception {
        final XMLGregorianCalendar startDttm = xmlDataTypeFac.newXMLGregorianCalendar("2012-01-01T00:00:00Z");
        OadrDistributeEvent distribEventPayload = new OadrDistributeEvent()
            .withRequestID("test-123")
            .withVtnID("vtn-123")
            .withOadrEvents( new OadrEvent()
                .withEiEvent(
                    new EiEvent()
                        .withEiTarget( new EiTarget()
                                .withVenIDs("ven-1234") )
                        .withEventDescriptor(new EventDescriptor()
View Full Code Here

    BlockingQueue<Packet> getQueue() { return this.packets; }
  }
 
  protected OadrDistributeEvent createEventPayload() {
    final XMLGregorianCalendar startDttm = xmlDataTypeFac.newXMLGregorianCalendar("2012-01-01T00:00:00Z");
    final ObjectFactory oadrTypes = new ObjectFactory();
   
    return new OadrDistributeEvent()
      .withRequestID("test-123")
      .withVtnID("vtn-123")
      .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(
                    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")))
                ))
            .withEiEventSignals( new EiEventSignals()
                .withEiEventSignals( new EiEventSignal()
                    .withSignalID("hi there")
                    .withCurrentValue(new CurrentValue(new PayloadFloat(1.0f)))
                    .withSignalName("simple")
                    .withSignalType(SignalTypeEnumeratedType.LEVEL)
                    .withIntervals( new Intervals()
                        .withIntervals( new Interval()
                          .withStreamPayloadBase( oadrTypes.createSignalPayload(
                              new SignalPayload(new PayloadFloat(1.0f))))
                          .withDuration( new DurationPropType(new DurationValue("PT1M")))
                          .withUid(new Uid("abc"))
                        )
                    )
View Full Code Here

TOP

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

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.