SOMA.agent.mobility
Class AgentTransportCommand

java.lang.Object
  extended bySOMA.network.connection.Command
      extended bySOMA.agent.mobility.AgentTransportCommand
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class AgentTransportCommand
extends Command

Comando per il trasporto di agenti.

Author:
Livio Profiri
See Also:
Serialized Form

Field Summary
 
Fields inherited from class SOMA.network.connection.Command
env, ReturnConnection
 
Constructor Summary
AgentTransportCommand(Environment env, Agent agent, PlaceID destination)
          Costruttore.
 
Method Summary
 void run()
          Avvia l'agente.
 boolean startOnError()
          Restituisce true.
 java.lang.String toString()
           
 
Methods inherited from class SOMA.network.connection.Command
Return, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentTransportCommand

public AgentTransportCommand(Environment env,
                             Agent agent,
                             PlaceID destination)
Costruttore.

Method Detail

run

public void run()
Avvia l'agente.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class Command

startOnError

public boolean startOnError()
Restituisce true.

Gli agenti vengono avviati anche se non raggiungono la destinazione. In questo modo si evita la loro distruzione in caso di malfunzionamento della rete.

Overrides:
startOnError in class Command

toString

public java.lang.String toString()


Copyright © 2004 Luca Foschini