public class EventPublisher extends java.lang.Object implements IEventPublisher
Modifier and Type | Field and Description |
---|---|
protected EventType |
addevent
The add event name.
|
protected IInternalAccess |
agent
The agent interpreter.
|
protected EventType |
changeevent
The change event name.
|
protected IResultCommand<IFuture<java.lang.Void>,PropertyChangeEvent> |
eventadder
The event adder.
|
protected MElement |
melement
The belief model.
|
protected EventType |
remevent
The remove event name.
|
Constructor and Description |
---|
EventPublisher(IInternalAccess agent,
EventType addevent,
EventType remevent,
EventType changeevent,
MElement melement)
Create a new publisher.
|
EventPublisher(IInternalAccess agent,
java.lang.String changeevent,
MElement melement)
Create a new publisher.
|
EventPublisher(IInternalAccess agent,
java.lang.String addevent,
java.lang.String remevent,
java.lang.String changeevent,
MElement melement)
Create a new publisher.
|
Modifier and Type | Method and Description |
---|---|
void |
entryAdded(java.lang.Object value,
int index)
An entry was added to the collection.
|
void |
entryAdded(java.lang.Object key,
java.lang.Object value)
An entry was added to the map.
|
void |
entryChanged(java.lang.Object oldvalue,
java.lang.Object newvalue,
int index)
An entry was changed in the collection.
|
void |
entryChanged(java.lang.Object key,
java.lang.Object oldvalue,
java.lang.Object newvalue)
An entry was changed in the map.
|
void |
entryRemoved(java.lang.Object value,
int index)
An entry was removed from the collection.
|
void |
entryRemoved(java.lang.Object key,
java.lang.Object value)
An entry was removed from the map.
|
protected EventType |
getAddEvent()
Get the addevent.
|
protected EventType |
getChangeEvent()
Get the changeevent.
|
protected EventType |
getRemEvent()
Get the remevent.
|
RuleSystem |
getRuleSystem()
Get the rule system.
|
void |
observeValue(java.lang.Object val) |
void |
publishToolBeliefEvent() |
void |
unobserveValue(java.lang.Object val) |
protected IInternalAccess agent
protected EventType addevent
protected EventType remevent
protected EventType changeevent
protected MElement melement
protected IResultCommand<IFuture<java.lang.Void>,PropertyChangeEvent> eventadder
public EventPublisher(IInternalAccess agent, java.lang.String changeevent, MElement melement)
public EventPublisher(IInternalAccess agent, java.lang.String addevent, java.lang.String remevent, java.lang.String changeevent, MElement melement)
public EventPublisher(IInternalAccess agent, EventType addevent, EventType remevent, EventType changeevent, MElement melement)
public RuleSystem getRuleSystem()
public void observeValue(java.lang.Object val)
public void unobserveValue(java.lang.Object val)
public void publishToolBeliefEvent()
protected EventType getAddEvent()
protected EventType getRemEvent()
protected EventType getChangeEvent()
public void entryAdded(java.lang.Object value, int index)
entryAdded
in interface IEventPublisher
public void entryRemoved(java.lang.Object value, int index)
entryRemoved
in interface IEventPublisher
public void entryChanged(java.lang.Object oldvalue, java.lang.Object newvalue, int index)
entryChanged
in interface IEventPublisher
public void entryAdded(java.lang.Object key, java.lang.Object value)
entryAdded
in interface IEventPublisher
public void entryRemoved(java.lang.Object key, java.lang.Object value)
entryRemoved
in interface IEventPublisher
public void entryChanged(java.lang.Object key, java.lang.Object oldvalue, java.lang.Object newvalue)
entryChanged
in interface IEventPublisher