|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractSharedWorldView cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenSharedWorldView cz.cuni.amis.pogamut.multi.communication.worldview.impl.BatchAwareSharedWorldView
public abstract class BatchAwareSharedWorldView
Field Summary |
---|
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenSharedWorldView |
---|
notifyEventsList, receiveEventProcessing, syncEventList, WORLDVIEW_DEPENDENCY |
Fields inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractSharedWorldView |
---|
COMPONENT_ID, control, controller, currentSharedProperties, idClassMap, localWorldViews, log, sharedProperties, sharedWorldObjects, staticWorldObjects, syncCurrentSharedProperties, syncIdClassMap, syncSharedProperties, syncSharedWorldObjects |
Constructor Summary | |
---|---|
BatchAwareSharedWorldView(java.util.logging.Logger logger)
Construcotr - all we need is logger. |
Method Summary | |
---|---|
protected abstract boolean |
isBatchEndEvent(IWorldChangeEvent event)
|
void |
notify(IWorldChangeEvent event)
|
protected void |
notifyLocalWorldViews(java.util.Set<IAgentId> waiting,
long time)
Notifies all waiting local world views, that batch belonging to 'time' has been exported by all local world views. |
protected void |
processBeginEvent(SharedBatchBeginEvent event)
Adds a lock for the desired time. |
protected void |
processEndEvent(IWorldChangeEvent event)
Processes batch-end event ... |
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.EventDrivenSharedWorldView |
---|
innerNotify, objectCreated, objectDestroyed, objectUpdated, propertyCreated, propertyUpdated, propertyUpdatedEvent, raiseEvent, sharedObjectUpdatedEvent, staticObjectUpdatedEvent |
Methods inherited from class cz.cuni.amis.pogamut.multi.communication.worldview.impl.AbstractSharedWorldView |
---|
addComponentBus, addEventListener, addObjectListener, addObjectListener, addObjectListener, addObjectListener, addOldSharedProperty, addSharedProperty, addSharedProperty, addSharedWorldObject, addStaticWorldObject, cleanUp, createSharedObject, getComponentId, getShared, getSharedProperties, getSharedProperty, getStatic, isListening, isListening, isListening, isListening, isListening, isListening, isPaused, isRunning, kill, pause, prePause, preStop, registerLocalWorldView, removeComponentBus, removeEventListener, removeListener, removeObjectListener, removeObjectListener, removeObjectListener, removeObjectListener, removeSharedProperty, removeSharedProperty, removeStaticWorldObject, removeStaticWorldObject, reset, resume, start, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BatchAwareSharedWorldView(java.util.logging.Logger logger)
logger
- Method Detail |
---|
protected abstract boolean isBatchEndEvent(IWorldChangeEvent event)
protected void notifyLocalWorldViews(java.util.Set<IAgentId> waiting, long time)
SharedBatchBeginEvent
occurs for 'time'.
waiting
- agent which local wvs should be notifiedtime
- time for which the batch has finishedprotected void processBeginEvent(SharedBatchBeginEvent event)
time
- protected void processEndEvent(IWorldChangeEvent event)
time
- public void notify(IWorldChangeEvent event)
notify
in interface ISharedWorldChangeEventInput
notify
in class EventDrivenSharedWorldView
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |