SOMA.network.connection
Class SelfConnection

java.lang.Object
  extended bySOMA.network.connection.Connection
      extended bySOMA.network.connection.SelfConnection
All Implemented Interfaces:
Daemon, java.lang.Runnable

public class SelfConnection
extends Connection

Autoconnessione: esegue in locale i comandi spediti.

Author:
Livio Profiri

Field Summary
 
Fields inherited from class SOMA.network.connection.Connection
env, ErrorDescription, myDaemon, myObjectInputStream, myObjectOutputStream, mySocket, status
 
Fields inherited from interface SOMA.network.connection.Daemon
ERROR, OFF, ON
 
Constructor Summary
SelfConnection(Environment env)
           
 
Method Summary
 java.lang.Object getStatus()
          restituisce lo stato della connessione.
 void run()
          Metodo vuoto.
 void send(Command c)
          Esegue il comando.
 void start()
          Metodo vuoto.
 void stop()
          Metodo vuoto.
 java.lang.String toString()
           
 
Methods inherited from class SOMA.network.connection.Connection
getIn, getOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelfConnection

public SelfConnection(Environment env)
Method Detail

getStatus

public java.lang.Object getStatus()
Description copied from class: Connection
restituisce lo stato della connessione.

Specified by:
getStatus in interface Daemon
Overrides:
getStatus in class Connection

start

public void start()
           throws ConnectionException
Metodo vuoto.

Specified by:
start in interface Daemon
Overrides:
start in class Connection
Throws:
ConnectionException

stop

public void stop()
          throws java.lang.Exception
Metodo vuoto.

Specified by:
stop in interface Daemon
Overrides:
stop in class Connection
Throws:
java.lang.Exception

toString

public java.lang.String toString()
Overrides:
toString in class Connection

send

public void send(Command c)
          throws java.io.IOException,
                 ConnectionException
Esegue il comando.

Overrides:
send in class Connection
Throws:
java.io.IOException
ConnectionException

run

public void run()
Metodo vuoto.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class Connection


Copyright © 2004 Luca Foschini