com.wolfram.jlink
Class PacketArrivedEvent
java.lang.Object
java.util.EventObject
com.wolfram.jlink.PacketArrivedEvent
- All Implemented Interfaces:
- java.io.Serializable
public class PacketArrivedEvent
- extends java.util.EventObject
The event type that is sent to PacketListeners to notify them that a packet has
arrived on the link.
PacketArrivedEvents are sent by the KernelLink methods that run internal packet loops,
reading and perhaps discarding packets. These methods are: waitForAnswer(), discardAnswer(),
evaluateToInputForm(), evaluateToOutputForm(), evaluateToImage(), and evaluateToTypeset().
- See Also:
PacketListener,
KernelLink,
Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Method Summary |
int |
getPktType()
Gives the type of packet that has arrived. |
java.lang.Object |
getSource()
Gives the link on which the packet has arrived. |
java.lang.String |
toString()
Gives a readable string describing the packet type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getPktType
public int getPktType()
- Gives the type of packet that has arrived.
- Returns:
- the packet type (an integer constant from the set defined in the MathLink class)
getSource
public java.lang.Object getSource()
- Gives the link on which the packet has arrived.
- Overrides:
getSource in class java.util.EventObject
- Returns:
- the link
toString
public java.lang.String toString()
- Gives a readable string describing the packet type.
- Overrides:
toString in class java.util.EventObject
- Returns:
- the description string
J/Link is Copyright (c) 1999-2008,
Wolfram Research, Inc. All rights reserved.