public class ProjogListeners extends Object
KnowledgeBase
.
Each KnowledgeBase
has a single unique ProjogListeners
instance.
KnowledgeBase.getProjogListeners()
Constructor and Description |
---|
ProjogListeners() |
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(ProjogListener listener)
Adds a listener to the set of listeners.
|
boolean |
deleteListener(ProjogListener listener)
Deletes an observer from the set of observers of this objects internal
Observable . |
void |
notifyCall(SpyPoints.SpyPointEvent event)
Notify all listeners of a first attempt to evaluate a goal.
|
void |
notifyExit(SpyPoints.SpyPointExitEvent event)
Notify all listeners when an attempt to evaluate a goal succeeds.
|
void |
notifyFail(SpyPoints.SpyPointEvent event)
Notify all listeners when an attempt to evaluate a goal fails.
|
void |
notifyInfo(String message)
Notify all listeners of a general information event.
|
void |
notifyRedo(SpyPoints.SpyPointEvent event)
Notify all listeners of an attempt to re-evaluate a goal.
|
void |
notifyWarn(String message)
Notify all listeners of a warning.
|
public boolean addListener(ProjogListener listener)
listener
- a listener to be addedpublic boolean deleteListener(ProjogListener listener)
Observable
.listener
- a listener to be deletedpublic void notifyCall(SpyPoints.SpyPointEvent event)
public void notifyRedo(SpyPoints.SpyPointEvent event)
public void notifyExit(SpyPoints.SpyPointExitEvent event)
public void notifyFail(SpyPoints.SpyPointEvent event)
public void notifyWarn(String message)
public void notifyInfo(String message)
Copyright © 2024. All rights reserved.