Examples of DurationPropType


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

                    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

Examples of com.enernoc.open.oadr2.model.v20b.xcal.DurationPropType

                .withSchemaVersion( "2.0b" )
                .withOadrReportRequests( new OadrReportRequest()
                        .withReportRequestID( "request-1234" )
                        .withReportSpecifier( new ReportSpecifier()
                                .withReportSpecifierID( "1234" )
                                .withGranularity( new DurationPropType( new DurationValue( duration.toString() ) ) )
                                .withReportBackDuration( new DurationPropType( new DurationValue( duration.toString() ) ) )
                                .withSpecifierPayloads( new SpecifierPayload()
                                        .withRID( "report 1234" )
                                        .withReadingType( ReadingTypeEnumeratedType.DIRECT_READ.value() )
                                        .withItemBase( of.createPulseCount( new PulseCountType()
                                                .withItemDescription( "pulse count" )
View Full Code Here

Examples of com.enernoc.open.oadr2.model.v20b.xcal.DurationPropType

                        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 PayloadFloatType(1.0f)))
                        .withSignalName("simple")
                        .withSignalType(SignalTypeEnumeratedType.LEVEL)
                        .withIntervals( new Intervals()
                            .withIntervals( new Interval()
                              .withStreamPayloadBases( eiObjectFactory.createSignalPayload(
                                      new SignalPayload( eiObjectFactory.createPayloadFloat(
                                              new PayloadFloatType( 1.0f) ) ) ) )
                              .withDuration( new DurationPropType( new DurationValue( "PT1M" )) )
                              .withDtstart( new Dtstart(new DateTime( startDttm )) )
                            )
                        )
                    )
                )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.