/** * Publish an EventStatus on the network. * * <p>No corresponding subscribe is provided yet. * * @param name The name for the EventStatus. * @param stat The EventStatus to publish. */ public static void publish(final String name, EventStatus stat) { CluckPublisher.publish(node, name, stat); }
/** * Publish an OutputStream on the network. * * @param name The name for the OutputStream. * @param out The OutputStream. */ public static void publish(String name, final OutputStream out) { CluckPublisher.publish(node, name, out); }
/** * Publish an RConfable device on the network. * * @param name The name for the RConfable. * @param device The RConfable. */ public static void publishRConf(String name, RConfable device) { CluckPublisher.publishRConf(node, name, device); }
/** * Subscribe to a FloatOutput from the network at the specified path. * * @param path The path to subscribe to. * @return the FloatOutput. */ public static FloatOutput subscribeFO(final String path) { return CluckPublisher.subscribeFO(node, path); }
/** * Subscribe to a FloatInput from the network at the specified path. * * @param path The path to subscribe to. * @param subscribeByDefault Should this request the value from the remote by default, as opposed * to waiting until this is needed. If this is false, then readValue() won't work until you * run addTarget(). * @return the FloatInput. */ public static FloatInput subscribeFI(final String path, boolean subscribeByDefault) { return CluckPublisher.subscribeFI(node, path, subscribeByDefault); }
/** * Publish a FloatOutput on the network. * * @param name The name for the FloatOutput. * @param out The FloatOutput. */ public static void publish(String name, FloatOutput out) { CluckPublisher.publish(node, name, out); }
/** * Subscribe to a BooleanOutput from the network at the specified path. * * @param path The path to subscribe to. * @return the BooleanOutput. */ public static BooleanOutput subscribeBO(final String path) { return CluckPublisher.subscribeBO(node, path); }
/** * Publish an EventInput on the network. * * @param name The name for the EventInput. * @param source The EventInput. */ public static void publish(final String name, EventInput source) { CluckPublisher.publish(node, name, source); }
/** * Subscribe to a BooleanInput from the network at the specified path. * * @param path The path to subscribe to. * @param shouldSubscribeByDefault Should this request the value from the remote by default, as * opposed to waiting until this is needed. If this is false, then readValue() won't work * until you run addTarget(). * @return the BooleanInput. */ public static BooleanInput subscribeBI(final String path, boolean shouldSubscribeByDefault) { return CluckPublisher.subscribeBI(node, path, shouldSubscribeByDefault); }
/** * Publish a BooleanOutput on the network. * * @param name The name for the BooleanOutput. * @param output The BooleanOutput. */ public static void publish(String name, final BooleanOutput output) { CluckPublisher.publish(node, name, output); }
/** * Subscribe to a LoggingTarget from the network at the specified path, with only sending data for * at least a minimum logging level. * * @param path The path to subscribe to. * @param minimum The minimum logging level to send over the network. * @return the LoggingTarget. */ public static LoggingTarget subscribeLT(final String path, final LogLevel minimum) { return CluckPublisher.subscribeLT(node, path, minimum); }
/** * Publish a LoggingTarget on the network. * * @param name The name for the LoggingTarget. * @param lt The LoggingTarget. */ public static void publish(String name, final LoggingTarget lt) { CluckPublisher.publish(node, name, lt); }
/** * Subscribe to an EventInput from the network at the specified path. * * @param path The path to subscribe to. * @return the EventInput. */ public static EventInput subscribeEI(final String path) { return CluckPublisher.subscribeEI(node, path); }
/** * Subscribe to an OutputStream from the network at the specified path. * * @param path The path to subscribe to. * @return the OutputStream. */ public static OutputStream subscribeOS(final String path) { return CluckPublisher.subscribeOS(node, path); }
/** * Publish a FloatInput on the network. This will send values to clients when they connect. * * @param name The name for the FloatInput. * @param input The FloatInput. */ public static void publish(final String name, final FloatInput input) { CluckPublisher.publish(node, name, input); }
/** * Subscribe to an RConfable device from the network at the specified path. * * @param path The path to subscribe to. * @param timeout The maximum wait time for the RPC calls. * @return the RConfable. */ public static RConfable subscribeRConf(String path, int timeout) { return CluckPublisher.subscribeRConf(node, path, timeout); }
/** * Publish an EventOutput on the network. * * @param name The name for the EventOutput. * @param consumer The EventOutput. */ public static void publish(String name, final EventOutput consumer) { CluckPublisher.publish(node, name, consumer); }