neosim.iface
Interface SourceMethod
- All Known Implementing Classes:
- SourceMethodImpl
- public interface SourceMethod
- extends java.io.Serializable
The part of a general projection which runs on
each source entity and sends requests to make connections
to candidate destination entities.
sendRequests
public void sendRequests(Entity srce,
Population destPop,
DestMethod dm)
- THIS METHOD SHOULD BE OVERRIDDEN BY DIFFERENT SOURCE METHODS.
The sendRequests method checks the source entity's details
and sends connection requests to individual destination
entities (using sendRequest) or to all members of a population
(using bcastRequest).
- Parameters:
srce
- the source entitydestPop
- the destination Populationdm
- the destination method to handle requests at the far end
sendRequest
public void sendRequest(Entity srce,
EntityID deste,
ConnectionRequest cr)
- THIS METHOD CAN BE CALLED FROM WITHIN sendRequests() ABOVE.
The sendRequest method sends an individual connection request to
a destination entity
- Parameters:
srce
- the source entitydeste
- the handle of the destination entitycr
- the connection request
bcastRequest
public void bcastRequest(Entity srce,
Population destpop,
ConnectionRequest cr)
- THIS METHOD CAN BE CALLED FROM WITHIN sendRequests() ABOVE.
The bcastRequest method sends an identical request to
all members of a destination population
- Parameters:
srce
- the source entitydestpop
- the population to connect tocr
- the connection request