This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
composite CircularFS(output Out0) | |
{ | |
graph | |
(stream<rstring filename> Beacon_2_out0) as Beacon_2 = Beacon() | |
{ | |
param | |
period : 1.0 ; | |
output | |
Beacon_2_out0 : filename = "data.txt" ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace application; | |
type Quote = rstring ticker, rstring date, rstring time, float64 askprice; | |
composite SimpleApp{ | |
graph | |
(stream<rstring filename> Beacon_2_out0) as Beacon_2 = Beacon() | |
{ | |
param | |
period : 1.0 ; | |
output | |
Beacon_2_out0 : filename =getApplicationDir() + "/etc/trades.csv"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import streamsx.ec | |
import streamsx.standard.utility as util | |
import streamsx.spl.op as op | |
from enum import IntEnum | |
from time import sleep | |
import time | |
import csv | |
from streamsx.topology.schema import StreamSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package demo; | |
import java.util.Date; | |
import java.util.Properties; | |
import org.eclipse.paho.client.mqttv3.IMqttDeliveryToken; | |
import org.eclipse.paho.client.mqttv3.MqttCallback; | |
import org.eclipse.paho.client.mqttv3.MqttClient; | |
import org.eclipse.paho.client.mqttv3.MqttConnectOptions; | |
import org.eclipse.paho.client.mqttv3.MqttException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import getpass | |
import datetime | |
from streamsx.topology.context import ContextTypes, JobConfig | |
from streamsx.topology import context | |
from streamsx.topology.topology import Topology | |
import random, time | |
import typing |