Package ptolemy.actor.lib.jjs
Class JavaScript.DeferredSend
- java.lang.Object
-
- ptolemy.actor.lib.jjs.JavaScript.DeferredSend
-
- All Implemented Interfaces:
java.lang.Runnable
- Enclosing class:
- JavaScript
public class JavaScript.DeferredSend extends java.lang.Object implements java.lang.Runnable
Runnable object intended to be run inside of the fire method to send out a token that was attempted to be send out at an earlier time, asynchronous with fire.
-
-
Constructor Summary
Constructors Constructor Description DeferredSend(JavaScript.PortOrParameterProxy proxy, int channelIndex, Token data, java.lang.Object value)
Construct an object that defers a send operation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Invoke send on the port or parameter proxy.
-
-
-
Constructor Detail
-
DeferredSend
public DeferredSend(JavaScript.PortOrParameterProxy proxy, int channelIndex, Token data, java.lang.Object value)
Construct an object that defers a send operation.- Parameters:
proxy
- A proxy corresponding to the port or parameter.channelIndex
- The channel to send data on.data
- The data token to send through the port or update the parameter with.value
- The JavaScript value to pass back when the send actually occurs.
-
-