Package 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.EventObjectThe 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPktType()Gives the type of packet that has arrived.java.lang.ObjectgetSource()Gives the link on which the packet has arrived.java.lang.StringtoString()Gives a readable string describing the packet type.
-
-
-
Method Detail
-
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:
getSourcein classjava.util.EventObject- Returns:
- the link
-
toString
public java.lang.String toString()
Gives a readable string describing the packet type.- Overrides:
toStringin classjava.util.EventObject- Returns:
- the description string
-
-