|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--edu.iu.iv.core.IVC
|
+--edu.iu.iv.common.BasicIVC
Basic implementation of the IVC interface. All the registries, facades, the gui, the scheduler, and global data needed for this system is provided here.
| Constructor Summary | |
BasicIVC()
Constructs a new BasicIVC using default implementations for the plugin registry, persistence registry, and persistence facade. |
|
| Method Summary | |
void |
addAddModelListener(AddModelListener listener)
Adds an add model listener to the IVC. |
void |
addModel(java.lang.Object model)
Adds a model to the system. |
ConfigFile |
getConfigFile()
get the config file for the system. |
java.io.File |
getErrorLogFile()
Gets the file object representing the current log file. |
java.util.logging.Logger |
getErrorLogger()
Gets the logger associated with the IVC so that messages can be logged. |
IVCLogManager |
getIVCLogManager()
|
IVCUserInterface |
getIVCUserInterface()
Gets the IVC User Interface for the system. |
PersistenceRegistry |
getPersistenceRegistry()
Gets the persistence registry. |
java.io.File |
getPluginPath()
Gets the path to the plugin directory so plugins may access files in there if needed. |
PluginRegistry |
getPluginRegistry()
Gets the plugin registry. |
Scheduler |
getScheduler()
Gets the scheduler currently in use by the system. |
void |
removeAddModelListener(AddModelListener listener)
Removes an add model listener from the list of those that will be notified when a model is added to the IVC. |
void |
setConfigFile(ConfigFile configFile)
Set the associated config file for the IVC system. |
void |
setErrorLogFile(java.io.File errorLogFile,
boolean append)
If it is desired to save log messages to a file, this method must be called before logging any messages. |
void |
setPluginPath(java.io.File pluginPath)
Sets the path to the plugin directory so that plugins may access files in the directory if they have some located there. |
void |
setScheduler(Scheduler scheduler)
Sets the scheduler to be used by the system. |
| Methods inherited from class edu.iu.iv.core.IVC |
getInstance |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicIVC()
| Method Detail |
public PluginRegistry getPluginRegistry()
IVC
getPluginRegistry in class IVCIVC.getPluginRegistry()public PersistenceRegistry getPersistenceRegistry()
IVC
getPersistenceRegistry in class IVCIVC.getPersistenceRegistry()
public void addModel(java.lang.Object model)
throws UnsupportedModelException
IVC
addModel in class IVCmodel - the model to add. This can be any object that is supported by the plugins.
UnsupportedModelException - if there is no plugin that can handle the model added, then an exception will be thrown.edu.iu.iv.core.IVC#addModel(edu.iu.iv.core.datamodels.DataModel)public void addAddModelListener(AddModelListener listener)
IVC
addAddModelListener in class IVClistener - a listener for models being added to the system.IVC.addAddModelListener(edu.iu.iv.core.AddModelListener)public void removeAddModelListener(AddModelListener listener)
IVC
removeAddModelListener in class IVClistener - the listener to removeIVC.removeAddModelListener(edu.iu.iv.core.AddModelListener)public IVCUserInterface getIVCUserInterface()
IVC
getIVCUserInterface in class IVCedu.iu.iv.core.IVC#getIVCToolkit()public Scheduler getScheduler()
IVC
getScheduler in class IVCIVC.getScheduler()public void setScheduler(Scheduler scheduler)
IVC
setScheduler in class IVCscheduler - the scheduler to be used.IVC.setScheduler(edu.iu.iv.core.Scheduler)public void setPluginPath(java.io.File pluginPath)
IVC
setPluginPath in class IVCpluginPath - the plugin directory.IVC.setPluginPath(java.io.File)public java.io.File getPluginPath()
IVC
getPluginPath in class IVCIVC.getPluginPath()public void setConfigFile(ConfigFile configFile)
IVC
setConfigFile in class IVCconfigFile - the config fileIVC.setConfigFile(edu.iu.iv.common.boot.ConfigFile)public ConfigFile getConfigFile()
IVC
getConfigFile in class IVCIVC.getConfigFile()public java.util.logging.Logger getErrorLogger()
IVC
getErrorLogger in class IVCIVC.getErrorLogger(),
Logger
public void setErrorLogFile(java.io.File errorLogFile,
boolean append)
throws java.io.IOException
setErrorLogFile in class IVCerrorLogFile - The path to the log file.append - An optional flag that if true, makes the logger append
to the log file rather than over-write it.
java.io.IOException - If the logger could not be configured to
write to the specified log file.IVC.setErrorLogFile(File, boolean)public IVCLogManager getIVCLogManager()
getIVCLogManager in class IVCpublic java.io.File getErrorLogFile()
IVC
getErrorLogFile in class IVCIVC.getErrorLogFile()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||