agentworker.java
来自「一个agent 工具包,可以开发移动设备应用,考虑了安全措施」· Java 代码 · 共 23 行
JAVA
23 行
package SOMA.agent;
import java.lang.reflect.*;
import java.io.*;
import SOMA.Environment;
import SOMA.network.connection.*;
import SOMA.agent.mobility.*;
import SOMA.naming.*;
/** <P>Classe che rappresenta un agente in esecuzione.
* </P><P>
* Ad ogni agente <B>agente</B> il place associa un <B>worker</B>, un componente
* che effettua tutte le operazioni di base di un agente.
* Il worker possiede anche il thread di esecuzione dell'agente, che puo' essere avviato ed interrotto.
* </P><P>
* Il worker implementa l'interfaccia {@link SOMA.network.connection.Daemon}.
* Questa comprende i metodi per avviare ed interrompere il thread di un worker, ossia di un agente.
* L'interfaccia prevede anche uno stato del worker. Infine per gestire da menu gli agenti
* si puo' utilizzare la voce di menu {@link SOMA.network.connection.DaemonExplorerItem DaemonExplorerItem}
* utilizzata allo stesso modo in altri contesti.
*
* <P> Il worker ha uno stato che pu
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?