public class SystemManager extends java.lang.Object implements ListManager<Processor>, IOUserInterfaceableObject, Resettable, Memorizable, REpiceaShowableUIWithParent, REpiceaGUIPermissionProvider
Modifier and Type | Field and Description |
---|---|
protected SystemManagerDialog |
guiInterface |
Constructor and Description |
---|
SystemManager() |
SystemManager(REpiceaGUIPermission permission) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkForEndlessLoops() |
javax.swing.filechooser.FileFilter |
getFileFilter()
This method returns the appropriate FileFilter instance for this class.
|
java.lang.String |
getFilename()
This method returns the filename of the parameters.
|
REpiceaGUIPermission |
getGUIPermission()
This method returns the Permission instance associated with the object.
|
java.util.List<Processor> |
getList()
This method returns the list of UserInterfaceableObject-derived instance
|
MemorizerPackage |
getMemorizerPackage()
This method creates a MemorizerPackage instance that can be sent in turn to the TemporaryMemorizer instance for serialization.
|
java.lang.String |
getName() |
java.util.List<Processor> |
getPrimaryProcessors()
This method returns the list of primary processors, ie.
|
SystemManagerDialog |
getUI(java.awt.Container parent)
This method returns the GUI interface of the class that implements this interface.
|
boolean |
isVisible()
This method returns true if the GUI is visible.
|
void |
load(java.lang.String filename)
This method makes it possible to load information from a file.
|
static void |
main(java.lang.String[] args) |
void |
registerObject(Processor process)
This method add the UserInterfaceableObject-derived instance to the list.
|
void |
removeObject(Processor process)
This method remove the UserInterfaceableObject-derived instance from the list.
|
void |
reset()
This method reinitializes some fields of the instance that implements this interface.
|
void |
save(java.lang.String filename)
This method saves the records in a file denominated by the filename parameter.
|
void |
showUI(java.awt.Window parent)
This method shows the GUI interface of the class that implements this interface.
|
void |
unpackMemorizerPackage(MemorizerPackage wasMemorized)
This method unpacks the MemorizerPackage instance retrieved by the TemporaryMemorizer class.
|
protected transient SystemManagerDialog guiInterface
public SystemManager(REpiceaGUIPermission permission)
public SystemManager()
public java.util.List<Processor> getList()
ListManager
getList
in interface ListManager<Processor>
public void registerObject(Processor process)
ListManager
registerObject
in interface ListManager<Processor>
process
- a UserInterfaceableObject-derived instancepublic void removeObject(Processor process)
ListManager
removeObject
in interface ListManager<Processor>
process
- a UserInterfaceableObject-derived instancepublic SystemManagerDialog getUI(java.awt.Container parent)
REpiceaUIObjectWithParent
getUI
in interface REpiceaUIObjectWithParent
parent
- a parent Container instance (can be null)public void showUI(java.awt.Window parent)
REpiceaShowableUIWithParent
showUI
in interface REpiceaShowableUIWithParent
parent
- the parent Window instance (can be null)public void load(java.lang.String filename) throws java.io.IOException
Loadable
public void save(java.lang.String filename) throws java.io.IOException
Saveable
public java.util.List<Processor> getPrimaryProcessors()
public javax.swing.filechooser.FileFilter getFileFilter()
IOUserInterfaceableObject
getFileFilter
in interface IOUserInterfaceableObject
public java.lang.String getFilename()
IOUserInterfaceableObject
getFilename
in interface IOUserInterfaceableObject
public java.lang.String getName()
public void reset()
Resettable
reset
in interface Resettable
public REpiceaGUIPermission getGUIPermission()
REpiceaGUIPermissionProvider
getGUIPermission
in interface REpiceaGUIPermissionProvider
public MemorizerPackage getMemorizerPackage()
Memorizable
getMemorizerPackage
in interface Memorizable
public void unpackMemorizerPackage(MemorizerPackage wasMemorized)
Memorizable
unpackMemorizerPackage
in interface Memorizable
wasMemorized
- a MemorizerPackage instancepublic boolean isVisible()
REpiceaUIObjectWithParent
isVisible
in interface REpiceaUIObjectWithParent
protected void checkForEndlessLoops()
public static void main(java.lang.String[] args)