edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddebrunner <...@git.apache.org>
Subject [GitHub] incubator-quarks-website pull request: [QUARKS-141] Update existin...
Date Tue, 12 Apr 2016 13:21:00 GMT
Github user ddebrunner commented on a diff in the pull request:

    https://github.com/apache/incubator-quarks-website/pull/39#discussion_r59373891
  
    --- Diff: site/recipes/recipe_different_processing_against_stream.md ---
    @@ -10,27 +10,35 @@ In this instance, we can take the stream of mileage sensor readings
and apply mu
     
     ## Setting up the application
     
    -We assume that the environment has been set up following the steps outlined in the [Getting
Started Guide](../docs/quarks-getting-started). Let's begin by creating a `DirectProvider`
and `Topology`. We choose a `DevelopmentProvider` so that we can view the topology graph using
the console URL (refer to the [Application Console](../docs/console) page for a more detailed
explanation of this provider). The initial mileage value and the number of miles in a typical
delivery route have also been defined.
    +We assume that the environment has been set up following the steps outlined in the [Getting
started guide](../docs/quarks-getting-started). Let's begin by creating a `DirectProvider`
and `Topology`. We choose a `DevelopmentProvider` so that we can view the topology graph using
the console URL (refer to the [Application console](../docs/console) page for a more detailed
explanation of this provider). The gas mileage bounds, initial mileage value, and the number
of miles in a typical delivery route have also been defined.
     
     ```java
         import java.text.DecimalFormat;
    -    import java.util.Random;
         import java.util.concurrent.TimeUnit;
     
         import com.google.gson.JsonObject;
     
    +    import quarks.analytics.sensors.Ranges;
         import quarks.console.server.HttpServer;
         import quarks.providers.development.DevelopmentProvider;
         import quarks.providers.direct.DirectProvider;
    +    import quarks.samples.utils.sensor.SimpleSimulatedSensor;
         import quarks.topology.TStream;
         import quarks.topology.Topology;
     
         public class ApplyDifferentProcessingAgainstStream {
             /**
    -         * Hypothetical values for the initial gas mileage and the
    -         * number of miles in a typical delivery route
    +         * Gas mileage value bounds
    --- End diff --
    
    "gas mileage" is a term used for fuel economy,  may be a US centric term though, but then
again so is "miles per gallon".


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message