org.reprap.comms
Class IncomingContext

java.lang.Object
  extended by org.reprap.comms.IncomingContext

public class IncomingContext
extends java.lang.Object


Field Summary
private  Communicator communicator
           
private  Address expectedAddress
           
 
Constructor Summary
IncomingContext(Communicator communicator, Address address)
           
 
Method Summary
 Communicator getCommunicator()
           
 Address getExpectedAddress()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

communicator

private Communicator communicator

expectedAddress

private Address expectedAddress
Constructor Detail

IncomingContext

public IncomingContext(Communicator communicator,
                       Address address)
Parameters:
communicator - The communicator to receive messages from
address - Address to receive messages from (null for any)
Method Detail

getCommunicator

public Communicator getCommunicator()
Returns:
communicator

getExpectedAddress

public Address getExpectedAddress()
Returns:
expectedAddress