Tabnine Logo
OSCMessage.getAddress
Code IndexAdd Tabnine to your IDE (free)

How to use
getAddress
method
in
com.illposed.osc.OSCMessage

Best Java code snippets using com.illposed.osc.OSCMessage.getAddress (Showing top 6 results out of 315)

origin: fossasia/neurolab-desktop

  public void acceptMessage(java.util.Date time, OSCMessage message)
  {
    
    System.out.println("received " + message.getAddress() + ":");
    for (Object argument : message.getArguments())
      System.out.println(argument.toString());
  }
};
origin: hoijui/JavaOSC

  private void dispatchMessage(final OSCMessage message, final Date time) {
    for (final Entry<AddressSelector, OSCListener> addrList : selectorToListener.entrySet()) {
      if (addrList.getKey().matches(message.getAddress())) {
        addrList.getValue().acceptMessage(time, message);
      }
    }
  }
}
origin: synchrony/smsn

/**
 * Passes an OSC message to the attached sender.
 * Note: this method is synchronized for the sake of senders of uncertain thread safety
 *
 * @param message the OSC message to send
 */
public synchronized void send(final OSCMessage message) {
  if (null == sender) {
    logger.warning("can't send message with address " + message.getAddress() + "; no sender has been defined");
  } else {
    if (null != messages) {
      messages.offer(message);
    } else {
      if (throttlingPeriod > 0) {
        throttle();
      }
      sendInternal(message);
    }
  }
}
origin: net.fortytwo.smsn/smsn-p2p

/**
 * Passes an OSC message to the attached sender.
 * Note: this method is synchronized for the sake of senders of uncertain thread safety
 *
 * @param message the OSC message to send
 */
public synchronized void send(final OSCMessage message) {
  if (null == sender) {
    logger.warning("can't send message with address " + message.getAddress() + "; no sender has been defined");
  } else {
    if (null != messages) {
      messages.offer(message);
    } else {
      if (throttlingPeriod > 0) {
        throttle();
      }
      sendInternal(message);
    }
  }
}
origin: synchrony/smsn

/**
 * Routes an OSC message to the appropriate handler
 *
 * @param message the received message to be handled
 * @return whether a matching handler was found
 */
public boolean receive(final OSCMessage message) {
  OscMessageHandler handler = handlers.get(message.getAddress());
  boolean handled;
  if (null == handler) {
    handled = false;
  } else {
    handler.handle(message);
    handled = true;
  }
  // give the message to the listeners after any time-critical handlers have been served
  for (OSCMessageListener listener : listeners) {
    listener.handle(message);
  }
  return handled;
}
origin: net.fortytwo.smsn/smsn-p2p

/**
 * Routes an OSC message to the appropriate handler
 *
 * @param message the received message to be handled
 * @return whether a matching handler was found
 */
public boolean receive(final OSCMessage message) {
  OscMessageHandler handler = handlers.get(message.getAddress());
  boolean handled;
  if (null == handler) {
    handled = false;
  } else {
    handler.handle(message);
    handled = true;
  }
  // give the message to the listeners after any time-critical handlers have been served
  for (OSCMessageListener listener : listeners) {
    listener.handle(message);
  }
  return handled;
}
com.illposed.oscOSCMessagegetAddress

Javadoc

The receiver of this message.

Popular methods of OSCMessage

  • <init>
    Creates an OSCMessage with an address and arguments already initialized.
  • addArgument
    Add an argument to the list of arguments.
  • getArguments
    The arguments of this message.
  • getByteArray
  • checkAddress
    Throws an exception if the given address is invalid. We explicitly allow null here, because we want
  • computeAddressByteArray
    Convert the address into a byte array. Used internally only.
  • computeArgumentsByteArray
    Convert the arguments into a byte array. Used internally only.
  • contentChanged
  • isValidAddress
    Checks whether a given string is a valid OSC Address Pattern.
  • setAddress
    Set the address of this message.

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • runOnUiThread (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now