All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.deepsense.neptune.clientlibrary.models.impl.channels.OfflineNumericChannel Maven / Gradle / Ivy

There is a newer version: 1.6.1
Show newest version
/**
 * Copyright (c) 2016, CodiLime Inc.
 */

package io.deepsense.neptune.clientlibrary.models.impl.channels;

import io.deepsense.neptune.clientlibrary.models.ChannelType;

import java.util.UUID;


public class OfflineNumericChannel extends OfflineChannel {

    public OfflineNumericChannel(UUID id, String name) {
        super(id, name);
    }

    public OfflineNumericChannel(UUID id, String name, boolean isHistoryPersisted) {
        super(id, name, isHistoryPersisted);
    }

    @Override
    public ChannelType getType() {
        return ChannelType.NUMERIC;
    }

    @Override
    public void send(double x, Double y) {
        logValue(x, formatDoubleValue(y));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy