|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--infosapient.system.ObservableImpl | +--infosapient.control.InfoSapientController
Class InfoSapientController mediates the state for the rules Server and the knowledgebase development environment.
InfoSapientLauncher
,
InfoSapientRuleEditor
,
InfoSapientAttributeEditor
,
InfoSapientInferenceEditor
,
InfoSapientInferControl
,
FzyTorquemada
, Serialized FormField Summary | |
(package private) boolean |
chgsOutstanding
|
(package private) FzyCorrelation |
corrMethod
|
(package private) FzyAttribute |
currentAttribute
|
(package private) FzyRule |
currentRule
|
(package private) FzySet |
currentSet
|
(package private) java.util.Date |
date
|
(package private) static java.util.Properties |
ERRORMsgs
|
(package private) FzyImplicationMethod |
inferMethod
|
(package private) java.lang.String |
kbFileName
|
(package private) static java.io.PrintWriter |
Log
|
(package private) boolean |
logErrors
|
(package private) FzyResolutionMethod |
resEngine
|
(package private) java.util.Properties |
runParameters
|
(package private) FSEvent |
runTimeEvent
|
(package private) boolean |
runTimeOnly
|
(package private) FzyKnowledgebase |
theKB
|
Fields inherited from class infosapient.system.ObservableImpl |
arr,
changed,
obs,
serialVersionUID |
Constructor Summary | |
InfoSapientController()
|
|
InfoSapientController(boolean f)
Set runtime flag Creation date: (2/2/00 1:29:37 PM) |
|
InfoSapientController(java.io.PrintWriter out)
|
|
InfoSapientController(java.lang.String kbFilePathName)
Initializes the BlackMesa Controller as the controller for the Rules Server. |
Method Summary | |
(package private) static void |
|
void |
addAttribute(FzyAttribute attrib)
Method to add a newly created FzyAttribute to the knowledgebase. |
void |
addRule(FzyRule rule)
Method to add the created or modified rule to the knowledgebase. |
void |
execute(java.util.Properties rp)
Execute a BlackMesa answer session as agent for Rules server. |
FzyAttribute |
getAttribute()
Accessor to return the current attribute. |
boolean |
getChgsOutstanding()
Accessor method to determine if the BlackMesaController has noted outstanding changes. |
FzyKnowledgebase |
getKB()
Accessor method to return the knowledgebase. |
FzyRule |
getRule()
Accessor to get the current rule being created, modified or deleted. |
(package private) java.lang.String |
getStackTrace(java.lang.Throwable throwable)
|
protected void |
handleAskPrompt(FSEvent event)
Method to pass back needed information to the executive during a run time session. |
void |
handleFSEvent(FSEvent ale)
Method to directly handle events without going through Observable/Observer interfaces. |
protected static void |
log(java.lang.String s)
|
void |
newKB(java.lang.String name)
Create a new knowledgebase. |
private void |
openErrorDialog(java.lang.Exception e)
Display an error message. |
private void |
openErrorDialog(java.lang.String e)
Creation date: (05/03/01 1:13:11 PM) |
private void |
processDeleteKB(java.io.File theKBFile)
Method to delete the knowledgebase after user has given permission. |
private void |
processExit()
Insert the method's description here. |
private void |
processForAttrEd(FzyAttribute fa)
Create a new window based on the attribute provided. |
private void |
processForHelp()
Insert the method's description here. |
private void |
processForInferControl()
Open a inference controller to run tests on rules, attributes. |
private void |
processForInferEd()
Insert the method's description here. |
private void |
processForRuleEd(FzyRule fr)
Open an Editor on the specified rule. |
private void |
processForSetEd(FzySet fs)
Open a set editor on the designated Fuzzy Set. |
void |
readKB(java.lang.String name)
Method to read (load) the knowledgebase into the system. |
void |
setAttribute(FzyAttribute a)
Accessor to set the current attribute being defined or modified. |
void |
setChgsOutstanding(boolean f)
Method to notify other components that changes have been made to the knowledgebase. |
void |
setKB(FzyKnowledgebase kb)
Sets the knowledge base for the controller Creation date: (12/13/1999 10:32:17 AM) |
void |
setRule(FzyRule r)
Accessor to set the current rule being created or modified. |
void |
update(Observable obser,
java.lang.Object obj)
Method to support the Observer interface. |
private void |
verifyDeleteKB()
Insert the method's description here. |
void |
writeKB(java.lang.String fn)
Write the knowledgebase out in POSIX format, XML tagged. |
Methods inherited from class infosapient.system.ObservableImpl |
addObserver,
clearChanged,
containsObserver,
countObservers,
deleteObserver,
deleteObservers,
hasChanged,
notifyObservers,
notifyObservers,
setChanged |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
Field Detail |
transient FSEvent runTimeEvent
transient java.util.Date date
transient java.util.Properties runParameters
transient boolean runTimeOnly
transient boolean chgsOutstanding
transient java.lang.String kbFileName
transient FzyKnowledgebase theKB
transient FzyCorrelation corrMethod
transient FzyImplicationMethod inferMethod
transient FzyResolutionMethod resEngine
transient FzyAttribute currentAttribute
transient FzySet currentSet
transient FzyRule currentRule
transient boolean logErrors
static java.io.PrintWriter Log
static java.util.Properties ERRORMsgs
Constructor Detail |
public InfoSapientController()
public InfoSapientController(java.io.PrintWriter out)
public InfoSapientController(java.lang.String kbFilePathName)
String
- -- the fully qualified pathname to the knowledgebase to be loaded.public InfoSapientController(boolean f)
f
- booleanMethod Detail |
static void()
public void addAttribute(FzyAttribute attrib)
infosapient.system.FzyAttribute
- -- the attribute being
added.public void addRule(FzyRule rule)
FzyRule
- -- the rule being added to the knowledgebase.public void execute(java.util.Properties rp) throws java.lang.IllegalArgumentException
Properties
- -- the properties object containing the goal,
and appropriate attribute values for needed information as key value pairs.public FzyAttribute getAttribute()
public boolean getChgsOutstanding()
public FzyKnowledgebase getKB()
public FzyRule getRule()
java.lang.String getStackTrace(java.lang.Throwable throwable)
protected void handleAskPrompt(FSEvent event)
FSEvent
- -- the event that contains the attribute and the specific request for information.public void handleFSEvent(FSEvent ale)
FSEvent
- -- event to be handled.protected static void log(java.lang.String s)
public void newKB(java.lang.String name)
String
- -- the name of the new knowledgebase.private void openErrorDialog(java.lang.Exception e)
e
- java.lang.Exceptionprivate void openErrorDialog(java.lang.String e)
e
- java.lang.Exceptionprivate void processDeleteKB(java.io.File theKBFile)
private void processExit()
private void processForAttrEd(FzyAttribute fa)
fa
- infosapient.system.FzyAttributeprivate void processForHelp()
private void processForInferControl()
private void processForInferEd()
private void processForRuleEd(FzyRule fr)
fr
- infosapient.system.FzyRuleprivate void processForSetEd(FzySet fs)
fs
- infosapient.system.FzySetpublic void readKB(java.lang.String name) throws java.lang.Exception
String
- -- the fully qualified path name of the
knowledgebase.public void setAttribute(FzyAttribute a)
FzyAttribute
- -- the current attribute.public void setChgsOutstanding(boolean f)
public void setKB(FzyKnowledgebase kb)
kb
- infosapient.system.FzyKnowledgebasepublic void setRule(FzyRule r)
infosapient.system.FzyRule
- -- the current rule.public void update(Observable obser, java.lang.Object obj)
Observable
- -- the object that sent the notifyObservers
messageObject
- the object sent as an argument when the observed
object invoked notifyObservers.private void verifyDeleteKB()
public void writeKB(java.lang.String fn)
String
- - the file name of the knowledgebase.
|
License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |