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.
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 entitycr
- 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 entityc
- the connection to make- Returns:
- the id of the connection