org.vigia.client
Interface Model

All Known Implementing Classes:
Client

public interface Model

The model's interface

Author:
Ada & jrios & Toshi

Method Summary
 void connect(java.lang.String ip, int pc, int pd)
          Connects to the remote camera.
 void controller(Controller cntr)
          Sets the controller for the model.
 void disconnect()
          Disconnects from the server.
 

Method Detail

connect

void connect(java.lang.String ip,
             int pc,
             int pd)
             throws java.net.UnknownHostException,
                    java.io.IOException
Connects to the remote camera.

Parameters:
ip - The remote camera's ip.
pc - The remote camera's control port.
pd - The local data port.
Throws:
java.io.IOException - Error with the communications.
java.net.UnknownHostException - Remote server not found.

disconnect

void disconnect()
                throws java.io.IOException
Disconnects from the server.

Throws:
java.io.IOException - Error disconnecting.

controller

void controller(Controller cntr)
Sets the controller for the model.

Parameters:
cntr - The controller.