|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kpro.ui.UserIO
public abstract class UserIO
The UserIO provides an abstract model of all the methods a user interface method must implement. There are five essential portions: construction of the user interface if necessary, via the object constructor; user reconfiguration (of the same options found in configuration file or on the commandline); the ability to display the database and all loaded policies; user revision, in which the suggested solution is provided to the user so the user can accept or reject it; and shutdown/deconstruction of any resources needed for the interface.
Constructor Summary | |
---|---|
UserIO()
|
Method Summary | |
---|---|
abstract void |
closeResources()
closes all resources used by UserIO - windows, files, streams, etc |
abstract java.util.ArrayList<PolicyObject> |
loadHistory()
Deprecated. |
abstract void |
showDatabase(PolicyDatabase pdb)
display the contents of the database |
abstract void |
user_init(java.util.Properties genProps)
returns a modified Properties to use init on. |
abstract PolicyObject |
userResponse(PolicyObject n)
Displays recommended action for policyObject, and returns used accept verion- same thing if no change, or altered if user disagrees. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserIO()
Method Detail |
---|
public abstract void user_init(java.util.Properties genProps)
genProps
- the default values for all commandline argumentspublic abstract void showDatabase(PolicyDatabase pdb)
pdb
- the database to displaypublic abstract java.util.ArrayList<PolicyObject> loadHistory()
public abstract PolicyObject userResponse(PolicyObject n)
n
- the policy display
public abstract void closeResources()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |