Class ReportingStrategy

    • Constructor Detail

      • ReportingStrategy

        protected ReportingStrategy()
    • Method Detail

      • ReportingAlgorithm

        @ThingworxExtensionApiMethod(since={8,4},
                                     canOverride=true)
        public java.lang.Boolean ReportingAlgorithm​(java.lang.String eventName,
                                                    org.joda.time.DateTime eventTime,
                                                    java.lang.String source,
                                                    java.lang.String sourceProperty,
                                                    InfoTable eventData)
        Service Category:
        ConnectionStatus
        Service Description:
        Evaluates a Thing to determine if it is Present.
        Specified by:
        ReportingAlgorithm in interface IReportingStrategy
        Parameters:
        eventName - Name of the event - STRING
        eventTime - Time event is triggered - DATETIME
        source - Name of Thing that triggered event - STRING
        sourceProperty - Soure property - STRING
        eventData - Parameters necessary for the algorithm to determine if a Thing is reporting - INFOTABLE
        Returns:
        result Whether the parameters describe a Device that is Reporting normally - BOOLEAN

        Abstract service definition, expected to be overridden by Strategy instances. This is roughly the Strategy design pattern