ist.palcom.rascal
Class RascalCommunicationThread
java.lang.Object
ist.palcom.palcomthreads.PalcomThread
ist.palcom.palcomthreads.PalcomPriorityThread
ist.palcom.mal.CommunicationThread
ist.palcom.rascal.RascalCommunicationThread
public class RascalCommunicationThread
- extends CommunicationThread
RascalCommunicationThread is a CommunicationThread used to enable the
communication between the PalCom device and the RASCAL agent.
It sends and receives PalCom messages using a socket opened on localhost.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URL_PREFIX
public static final java.lang.String URL_PREFIX
- See Also:
- Constant Field Values
LOCAL_SOCKET_PORT
public static final int LOCAL_SOCKET_PORT
- See Also:
- Constant Field Values
REMOTE_SOCKET_PORT
public static final int REMOTE_SOCKET_PORT
- See Also:
- Constant Field Values
socket
protected DatagramSocket socket
RascalCommunicationThread
public RascalCommunicationThread(PalcomScheduler scheduler,
PalcomThread distributorThread)
stop
public void stop()
run
public void run()
- Description copied from class:
PalcomThread
- This method is overridden by subclasses.
- Overrides:
run in class PalcomThread
getURL
public URL getURL()
- Specified by:
getURL in class CommunicationThread
- Returns:
- The URL for sending messages to this thread, a URL this thread
listens at (protocol-specific URL).
setReceiveBufferSize
public void setReceiveBufferSize(int size)
throws java.io.IOException
- Throws:
java.io.IOException
setSendBufferSize
public void setSendBufferSize(int size)
throws java.io.IOException
- Throws:
java.io.IOException