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.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
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:
getSource
in classjava.util.EventObject
- Returns:
- the link
-
toString
public java.lang.String toString()
Gives a readable string describing the packet type.- Overrides:
toString
in classjava.util.EventObject
- Returns:
- the description string
-
-