|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.kpro.ui.UserIO
com.kpro.ui.UserIO_Simple
public class UserIO_Simple
This is a very simple commandline version of a user interface. It doesn't permit user configuration (of running options), it has a ugly database display, but it works.
Constructor Summary | |
---|---|
UserIO_Simple()
|
Method Summary | |
---|---|
void |
closeResources()
nothing to close |
java.util.ArrayList<PolicyObject> |
loadHistory()
does nothing |
private java.lang.String |
parseAcceptedToString(boolean accepted)
converts a boolean to an 'accept'/'reject' suggestion. |
void |
showDatabase(PolicyDatabase pdb)
does nothing |
void |
user_init(java.util.Properties genProps)
This user interface doesn't actually let the user reconfigure anything. |
PolicyObject |
userResponse(PolicyObject n)
A super simple, static user display of the result on command line. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserIO_Simple()
Method Detail |
---|
public void showDatabase(PolicyDatabase pdb)
showDatabase
in class UserIO
pdb
- the database to displayUserIO.showDatabase(PolicyDatabase)
public java.util.ArrayList<PolicyObject> loadHistory()
loadHistory
in class UserIO
UserIO.loadHistory()
public PolicyObject userResponse(PolicyObject n)
userResponse
in class UserIO
n
- the policy display
UserIO.userResponse(PolicyObject)
private java.lang.String parseAcceptedToString(boolean accepted)
accepted
- true for result 'Accept', otherwise 'Reject'
public void closeResources()
closeResources
in class UserIO
public void user_init(java.util.Properties genProps)
user_init
in class UserIO
genProps
- the default values for all commandline arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |