uk.ac.vamsas.test.simpleclient.simpleapp
Class VamsasClient

java.lang.Object
  extended byuk.ac.vamsas.client.VorbaIdFactory
      extended byuk.ac.vamsas.client.simpleclient.IdFactory
          extended byuk.ac.vamsas.test.simpleclient.ArchiveClient
              extended byuk.ac.vamsas.test.simpleclient.simpleapp.VamsasClient
All Implemented Interfaces:
IVorbaIdFactory

public class VamsasClient
extends ArchiveClient

Author:
jimp

Nested Class Summary
protected  class VamsasClient.VamsasClientWatcher
           
 
Field Summary
 
Fields inherited from class uk.ac.vamsas.test.simpleclient.ArchiveClient
WATCH_SLEEP, watchForChange
 
Fields inherited from class uk.ac.vamsas.client.VorbaIdFactory
extanthashv, extantids, newobj
 
Constructor Summary
VamsasClient(java.io.File sessionPath)
          create a new vamsas client session from the archive at sessionPath.
 
Method Summary
 void disableGui(boolean b)
          disable (if b is true) or enable (if b is true) the VamsasClient's vamsas session gui bits whilst a document change is being updated to the app.
 void end_session()
           
 void initial_update()
          Called by gui to read anything from the vamsas session into the apps datamodel after it has started up.
static void main(java.lang.String[] args)
           
 void push_update()
          Called by app when internal datamodel should exported (syncrhonised outwards) to vamsas document
 void startWatcher()
          spawn a new thread to start the VamsasClientWatcher.
 void updateJalview(ClientDoc cdoc)
           
 void updateVamsasDocument(ClientDoc doc)
          called with a vamsas document which will be updated with new data from the app
 
Methods inherited from class uk.ac.vamsas.test.simpleclient.ArchiveClient
_getReadonly, doUpdate, getObject, getProvenanceUser, getUpdateable, getUpdateable, usage, valid, watch
 
Methods inherited from class uk.ac.vamsas.client.simpleclient.IdFactory
getClientHandle, getDummyFactory, getSessionHandle, getUserHandle, getVobjhashVals, getVorbaIdHash, makeVorbaId, setClient, setSession, setUser
 
Methods inherited from class uk.ac.vamsas.client.VorbaIdFactory
newId, setNewIdHash, updateHashValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VamsasClient

public VamsasClient(java.io.File sessionPath)
create a new vamsas client session from the archive at sessionPath.

Parameters:
sessionPath -
Method Detail

initial_update

public void initial_update()
Called by gui to read anything from the vamsas session into the apps datamodel after it has started up.


push_update

public void push_update()
Called by app when internal datamodel should exported (syncrhonised outwards) to vamsas document


end_session

public void end_session()

updateJalview

public void updateJalview(ClientDoc cdoc)

updateVamsasDocument

public void updateVamsasDocument(ClientDoc doc)
called with a vamsas document which will be updated with new data from the app

Parameters:
doc -

main

public static void main(java.lang.String[] args)
Parameters:
args -

disableGui

public void disableGui(boolean b)
disable (if b is true) or enable (if b is true) the VamsasClient's vamsas session gui bits whilst a document change is being updated to the app.

Parameters:
b -

startWatcher

public void startWatcher()
spawn a new thread to start the VamsasClientWatcher.