madkit.kernel
Class SynchroScheduler
java.lang.Object
madkit.kernel.AbstractAgent
madkit.kernel.SynchroScheduler
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- PythonCommandCenter
public abstract class SynchroScheduler
- extends AbstractAgent
This class is the non threaded version of a Scheduler.
Don't forget to make it implementing the ReferenceableAgent interface if you plan to schedule it with activators.
- Since:
- MadKit 3.1
- Version:
- 1.0 05/09/01
- Author:
- Fabien MICHEL
- See Also:
- Serialized Form
Methods inherited from class madkit.kernel.AbstractAgent |
activate, broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, destroyGroup, disposeMyGUI, foundGroup, getAddress, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, hashCode, hideMyGUI, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, receiveMessage, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, toString, windowClosing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
SynchroScheduler
public SynchroScheduler()
addActivator
public void addActivator(Activator<? extends AbstractAgent> a)
addActivator
public void addActivator(Activator<? extends AbstractAgent> a,
java.lang.Object accessCard)
removeActivator
public void removeActivator(Activator<? extends AbstractAgent> a)
getActivators
public final Activator<? extends AbstractAgent>[] getActivators()
removeAllActivators
public void removeAllActivators()
- Removes all the activators.
end
public void end()
- the end method will remove all the activators which have been used by the scheduler.
Overriding this method, one should use
super.end()
first in order to ease the removal of simulated agents which will be killed.
Doing so can greatly improved the "killing time" of simulation engines
- Overrides:
end
in class AbstractAgent
- See Also:
AbstractAgent.end()
Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.