neosim.iface
Interface DestMethod

All Known Implementing Classes:
DestMethodImpl

public interface DestMethod
extends java.io.Serializable

The part of a general projection which runs on a destination entity and decides to fulfill/deny connection requests.


Method Summary
 Connection considerRequest(Entity deste, ConnectionRequest cr)
          The considerRequest method checks the source entity's details against the dest entity's details, and returns True or False depending on whether or not the connection will be made.
 ConnectionID makeConnection(Entity deste, Connection c)
          This method is called by the considerRequest method to create a connection.
 

Method Detail

considerRequest

public Connection considerRequest(Entity deste,
                                  ConnectionRequest cr)
The considerRequest method checks the source entity's details against the dest entity's details, and returns True or False depending on whether or not the connection will be made.
Parameters:
deste - the destination entity
cr - the connection request from the source entity
Returns:
connection if a connection made, null otherwise.

makeConnection

public ConnectionID makeConnection(Entity deste,
                                   Connection c)
This method is called by the considerRequest method to create a connection.
Parameters:
deste - the destination entity
c - the connection to make
Returns:
the id of the connection