ffe.net
Class FClient

java.lang.Object
  extended byffe.net.FClient

public class FClient
extends java.lang.Object

The FClient class encapsulates a socket connection to an FServer started by an executing TINKER program. TinkerSystem and TinkerUpdate objects are sent by the FServer to the FClient on request.


Constructor Summary
FClient()
           
FClient(java.net.InetSocketAddress a)
           
FClient(int port)
           
 
Method Summary
 void connect()
          Attempts to connect to a Tinker FServer.
 TinkerSystem getSystem()
           
 TinkerUpdate getUpdate()
           
 boolean isClosed()
           
 boolean isConnected()
           
 void readSocket()
           
 void release()
           
 void setNeedSystem(boolean b)
          Specifies that a request should (not) be made for a System Definition
 void setNeedUpdate(boolean b)
          Specifies that a request should (not) be made for a Tinker Update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FClient

public FClient()

FClient

public FClient(int port)

FClient

public FClient(java.net.InetSocketAddress a)
Method Detail

setNeedSystem

public void setNeedSystem(boolean b)
Specifies that a request should (not) be made for a System Definition

Parameters:
b -

setNeedUpdate

public void setNeedUpdate(boolean b)
Specifies that a request should (not) be made for a Tinker Update

Parameters:
b -

connect

public void connect()
Attempts to connect to a Tinker FServer. If this FClient is already connected, the connection will be closed.


getSystem

public TinkerSystem getSystem()

getUpdate

public TinkerUpdate getUpdate()

isClosed

public boolean isClosed()

isConnected

public boolean isConnected()

readSocket

public void readSocket()

release

public void release()