SOMA.network
Class TransportCommand

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

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

Field Summary
(package private)  Command command
           
(package private)  PlaceID destination
           
 
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
 

Field Detail

destination

PlaceID destination

command

Command command
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.

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


Copyright © 2004 Luca Foschini