SOMA.network
Class TransportCommand

java.lang.Object
  |
  +--SOMA.network.connection.Command
        |
        +--SOMA.network.TransportCommand

public class TransportCommand
extends Command

Comando per le comunicazioni fra place di domini diversi.

TransportCommand incapsula il comando da recapitare: viene spedito verso una destinazione intermedia, raggiunta la quale spedisce di nuovo il comando trasportato.

Author:
Livio Profiri
See Also:
Serialized Form

Fields inherited from class SOMA.network.connection.Command
env, ReturnConnection
 
Constructor Summary
TransportCommand(PlaceID destination, Command command)
          Costruttore.
 
Method Summary
 void run()
          Spedisce di nuovo il comando trasportato.
 
Methods inherited from class SOMA.network.connection.Command
Return, start, startOnError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportCommand

public TransportCommand(PlaceID destination,
                        Command command)
Costruttore.
Parameters:
destination - Place di destinazione.
command - Comando da trasportare.
Method Detail

run

public void run()
Spedisce di nuovo il comando trasportato.

Se c'e' un errore nella spedizione e Command.startOnError() restituisce true, il comando viene attivato, altrimenti viene perso.
Overrides:
run in class Command