synergynetframework.appsystem.services.net.rapidnetworkmanager.utils.networkflick
Class TransferController

java.lang.Object
  extended by synergynetframework.appsystem.services.net.rapidnetworkmanager.utils.networkflick.TransferController

public class TransferController
extends java.lang.Object

The Class TransferController.


Nested Class Summary
 class TransferController.CustomThread
          The Class CustomThread.
 
Constructor Summary
TransferController(DefaultSynergyNetApp app)
          Instantiates a new transfer controller.
 
Method Summary
 ContentItem applyTransferableContentItem(TransferableContentItem message)
          Apply transferable content item.
 void cleanUpUnregisteredTable(UnregisterTableMessage msg)
          Clean up unregistered table.
 void enableNetworkFlick(boolean flickEnabled)
          Enable network flick.
 TableInfo getLocalTableInfo()
          Gets the local table info.
 boolean isDestinationTableAvailable(com.jme.scene.Spatial s, FlickMover fm)
          Checks if is destination table available.
 boolean isNetworkFlickEnabled()
          Checks if is network flick enabled.
 void registerRemoteTable(TableInfo remoteTableInfo)
          Register remote table.
 void sendRegistrationMessage(TableIdentity targeTableId)
          Send registration message.
 void setLocalTableInfo(TableInfo localTableInfo)
          Sets the local table info.
 void transfer(FlickMover fm, com.jme.scene.Spatial s, float[] thisArrivalLocationStats, VirtualTable table)
          Transfer.
 void update()
          Update.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransferController

public TransferController(DefaultSynergyNetApp app)
Instantiates a new transfer controller.

Parameters:
app - the app
Method Detail

applyTransferableContentItem

public ContentItem applyTransferableContentItem(TransferableContentItem message)
Apply transferable content item.

Parameters:
message - the message
Returns:
the content item

cleanUpUnregisteredTable

public void cleanUpUnregisteredTable(UnregisterTableMessage msg)
Clean up unregistered table.

Parameters:
msg - the msg

enableNetworkFlick

public void enableNetworkFlick(boolean flickEnabled)
Enable network flick.

Parameters:
flickEnabled - the flick enabled

getLocalTableInfo

public TableInfo getLocalTableInfo()
Gets the local table info.

Returns:
the local table info

isDestinationTableAvailable

public boolean isDestinationTableAvailable(com.jme.scene.Spatial s,
                                           FlickMover fm)
Checks if is destination table available.

Parameters:
s - the s
fm - the fm
Returns:
true, if is destination table available

isNetworkFlickEnabled

public boolean isNetworkFlickEnabled()
Checks if is network flick enabled.

Returns:
true, if is network flick enabled

registerRemoteTable

public void registerRemoteTable(TableInfo remoteTableInfo)
Register remote table.

Parameters:
remoteTableInfo - the remote table info

sendRegistrationMessage

public void sendRegistrationMessage(TableIdentity targeTableId)
Send registration message.

Parameters:
targeTableId - the targe table id

setLocalTableInfo

public void setLocalTableInfo(TableInfo localTableInfo)
Sets the local table info.

Parameters:
localTableInfo - the new local table info

transfer

public void transfer(FlickMover fm,
                     com.jme.scene.Spatial s,
                     float[] thisArrivalLocationStats,
                     VirtualTable table)
Transfer.

Parameters:
fm - the fm
s - the s
thisArrivalLocationStats - the this arrival location stats
table - the table

update

public void update()
Update.