uk.ac.cisban.rod.data
Class InoculationManager

java.lang.Object
  extended by uk.ac.cisban.rod.data.AbstractDataTypeManager
      extended by uk.ac.cisban.rod.data.InoculationManager

public class InoculationManager
extends AbstractDataTypeManager

Manages the parsing and saving of Inoculations.

Since:
26-Nov-2008 1:18:09 PM
Author:
Morgan Taschuk

Field Summary
 
Fields inherited from class uk.ac.cisban.rod.data.AbstractDataTypeManager
currentTasks, listeners
 
Constructor Summary
InoculationManager()
           
 
Method Summary
 void attemptToLoadInoculation(java.lang.Long actionAppId)
          Check if there are inoculation results for the current experiment.
 java.util.Collection<LogEventMapping> getInoculations(java.lang.Long actionAppId)
          Get the pertinent information about loaded Inoculation logs, if it exists.
 javax.swing.SwingWorker loadInoculation(java.io.File file, java.lang.Long actionApplicationId)
          Loads an inoculation log into the current screen
 
Methods inherited from class uk.ac.cisban.rod.data.AbstractDataTypeManager
addChangeListener, cancelCurrentTasks, hasCurrentTask, hasCurrentTask, isLoaded, removeChangeListener, setLoaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InoculationManager

public InoculationManager()
Method Detail

getInoculations

public java.util.Collection<LogEventMapping> getInoculations(java.lang.Long actionAppId)
Get the pertinent information about loaded Inoculation logs, if it exists.

Returns:
a list of the InoculationMappings defining an inoculation log, null if none

loadInoculation

public javax.swing.SwingWorker loadInoculation(java.io.File file,
                                               java.lang.Long actionApplicationId)
Loads an inoculation log into the current screen

Parameters:
file - the file with the inoculation data
Returns:
a thread that will load the inoc log upon execution

attemptToLoadInoculation

public void attemptToLoadInoculation(java.lang.Long actionAppId)
Check if there are inoculation results for the current experiment. If there are, load them. Fires a ChangeEvent in DataManager if loading is successful.



Copyright © 2010. All Rights Reserved.