-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlaceInterface.java
More file actions
25 lines (25 loc) · 836 Bytes
/
Copy pathPlaceInterface.java
File metadata and controls
25 lines (25 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package Mobile;
import java.rmi.*;
/**
* Mobile.PlaceInterface defines Place's RMI method that will be called from
* an Mobile.Agent.hop( ) to transfer an agent.
*
* @author Swetha Kumar
* @version %I% %G%
* @since 1.0
*/
public interface PlaceInterface extends Remote {
/**
* transfer( ) accepts an incoming agent and launches it as an independent
* thread.
*
* @param classname The class name of an agent to be transferred.
* @param bytecode The byte code of an agent to be transferred.
* @param entity The serialized object of an agent to be transferred.
* @return true if an agent was accepted in success, otherwise false.
*/
public boolean transfer( String classname, byte[] bytecode,
byte[] entity ) throws RemoteException;
public void put(String[] message) throws RemoteException;
public String[] get() throws RemoteException;
}