games.strategy.engine.xml
Class TestDelegate

java.lang.Object
  extended by games.strategy.engine.xml.TestDelegate
All Implemented Interfaces:
IDelegate

public final class TestDelegate
extends java.lang.Object
implements IDelegate

Version:
1.0 A simple dumb delegate, dont acutally call these methods. Simply to satisfy the interface requirements for testing.
Author:
Sean Bridges

Constructor Summary
TestDelegate()
           
 
Method Summary
 void cancelTransaction()
           
 void commit()
           
 void end()
          Called before the delegate will stop running.
 java.lang.String getDisplayName()
           
 java.lang.String getName()
           
 java.lang.Class<IRemote> getRemoteType()
          Get the remote type of this delegate for use by a RemoteMessenger.
 void initialize(java.lang.String name)
           
 void initialize(java.lang.String name, java.lang.String displayName)
           
 boolean inTransaction()
           
 void loadState(java.io.Serializable state)
          Loads the delegates state
 void rollback()
           
 java.io.Serializable saveState()
          Returns the state of the Delegate.
 void start(IDelegateBridge aBridge, GameData gameData)
          Called before the delegate will run.
 void startTransaction()
           
 boolean supportsTransactions()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestDelegate

public TestDelegate()
Method Detail

supportsTransactions

public boolean supportsTransactions()

initialize

public void initialize(java.lang.String name)

initialize

public void initialize(java.lang.String name,
                       java.lang.String displayName)
Specified by:
initialize in interface IDelegate

startTransaction

public void startTransaction()

rollback

public void rollback()

commit

public void commit()

inTransaction

public boolean inTransaction()

getName

public java.lang.String getName()
Specified by:
getName in interface IDelegate

cancelTransaction

public void cancelTransaction()

start

public void start(IDelegateBridge aBridge,
                  GameData gameData)
Description copied from interface: IDelegate
Called before the delegate will run.

Specified by:
start in interface IDelegate

end

public void end()
Description copied from interface: IDelegate
Called before the delegate will stop running.

Specified by:
end in interface IDelegate

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface IDelegate

getRemoteType

public java.lang.Class<IRemote> getRemoteType()
Description copied from interface: IDelegate
Get the remote type of this delegate for use by a RemoteMessenger. Class must be an interface that extends IRemote If the return value is null, then it indicates that this delegate should not be used as in IRemote.

Specified by:
getRemoteType in interface IDelegate

saveState

public java.io.Serializable saveState()
Returns the state of the Delegate.

Specified by:
saveState in interface IDelegate

loadState

public void loadState(java.io.Serializable state)
Loads the delegates state

Specified by:
loadState in interface IDelegate