Contents

Migrate from Madkit to Janus

This page provides a mapping of the MadKit features to the Janus features.


The version of MadKit described on this page is the 4.2.0; and the version of TurtleKit is the 2.4.6.

Legend

The following colors indicates the type of support by Janus of the features:

  • green: fully supported Madkit feature.
  • orange: supported Madkit feature by an extension or a specific kernel usage.
  • brown: supported Madkit feature, but hidden to Janus users.
  • red: discarted Madkit feature.


General Mapping

Madkit Janus
AgentAddress
GroupIdentifier
Kernel
MadKit
Message
ObjectMessage
Probe
StringMessage
Utils

Mapping to Organizational Context

The following tables permit to retreive the Janus features in an organizational context (Organization, role, capacity or role player) of the Madkit features.

AbstractAgent

Madkit Janus
Class Function
activate() Role
RoleCapacityImplementation
RolePlayer
broadcastMessage (group, role, message) Role
RoleCapacityImplementation
RolePlayer
broadcastMessage (community, group, role, message) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
connectedWithCommunity (community) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
createGroup(distributed, group, description, groupAddress) Role
RoleCapacityImplementation
RolePlayer
createGroup(distributed, community, group, description, groupAddress) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
debug(message) Role
RoleCapacityImplementation
RolePlayer
disposeMyGUI() Role see Mapping to Agent Context
RoleCapacityImplementation see Mapping to Agent Context
RolePlayer see Mapping to Agent Context
end() Role
RoleCapacityImplementation
RolePlayer
getAddress() Role
RoleCapacityImplementation
RolePlayer
getAgentInformation(). getAddress() Role
RoleCapacityImplementation
RolePlayer
getAgentInformation(). getName() Role
RoleCapacityImplementation
RolePlayer
getAgentsWithRole (group, role) Role
RoleCapacityImplementation
RolePlayer
getAgentsWithRole (community, group, role) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getAgentWithRole (group, role) Role
RoleCapacityImplementation
RolePlayer
getAgentWithRole (community, group, role) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getAvailableCommunities() Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getController() Role controller is the role.
RoleCapacityImplementation controller is the role.
RolePlayer
getDebug() Role
RoleCapacityImplementation
RolePlayer
getExistingGroups() Role
RoleCapacityImplementation
RolePlayer
getExistingGroups(community) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getExistingRoles() Role
RoleCapacityImplementation
RolePlayer
getExistingRoles(community) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getGUIObject() Role see Channel Interactions.
RoleCapacityImplementation see Channel Interactions.
RolePlayer see Channel Interactions.
getMessageBoxSize() Role
RoleCapacityImplementation
RolePlayer
getMyGroups() Role
RoleCapacityImplementation
RolePlayer
getMyGroups(community) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getMyRoles() Role
RoleCapacityImplementation
RolePlayer
getMyRoles(community) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
getName() Role
RoleCapacityImplementation
RolePlayer
hasGUI() Role see Channel Interactions.
RoleCapacityImplementation see Channel Interactions.
RolePlayer see Channel Interactions.
initGUI() Role see Channel Interactions.
RoleCapacityImplementation see Channel Interactions.
RolePlayer see Channel Interactions.
isBelongingToGroup (agentAddress, group) Role
RoleCapacityImplementation
RolePlayer
isBelongingToGroup (agentAddress, community, group) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
isCommunity (community) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
isGroup (group) Role
RoleCapacityImplementation
RolePlayer
isGroup (community, group) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
isMemberOf (group) Role
RoleCapacityImplementation
RolePlayer
isMessageBoxEmpty() Role
RoleCapacityImplementation
RolePlayer
isRole (group, role) Role
RoleCapacityImplementation
RolePlayer
isRole (community, group, role) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
leaveGroup (group) Role
RoleCapacityImplementation
RolePlayer
leaveGroup (community, group) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
leaveRole (group, role) Role
RoleCapacityImplementation
RolePlayer
leaveRole (community, group, role) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
nextMessage () Role
RoleCapacityImplementation
RolePlayer
print (message) Role
RoleCapacityImplementation
RolePlayer
println (message) Role
RoleCapacityImplementation
RolePlayer
redisplayMyGUI() Role see Channel Interactions.
RoleCapacityImplementation see Channel Interactions.
RolePlayer see Channel Interactions.
requestRole (group, role, memberCard) Role
RoleCapacityImplementation
RolePlayer
requestRole (community, group, role, memberCard) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
restoreAgent (agentInstance) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
sendMessage (group, role, message) Role
RoleCapacityImplementation
RolePlayer
sendMessage (community, group, role, message) Role see network support.
RoleCapacityImplementation see network support.
RolePlayer see network support.
setController (controller) Role see role playing.
RoleCapacityImplementation see role playing.
RolePlayer see role playing.
setDebug(b) Role
RoleCapacityImplementation
RolePlayer
setGUIObject(obj) Role see Channel Interactions.
RoleCapacityImplementation see Channel Interactions.
RolePlayer see Channel Interactions.
setName(name) Role
RoleCapacityImplementation
RolePlayer
setOutputWriter(writer) Role
RoleCapacityImplementation
RolePlayer
windowClosing (awtEvent) Role see Channel Interactions.
RoleCapacityImplementation see Channel Interactions.
RolePlayer see Channel Interactions.

Agent

Madkit Janus
Class Function
exitImmediatelyOnKill() Role "commit suicide" flag.
RoleCapacityImplementation
RolePlayer
live() Role
RoleCapacityImplementation
RolePlayer
waitNextMessage() Role
RoleCapacityImplementation
RolePlayer
waitNextMessage(timeout) Role
RoleCapacityImplementation
RolePlayer


Activator

Madkit Janus
Class Function
execute() RoleActivator
getAgentNb() AbstractActivableContainer
getAgentsIterator() AbstractActivableContainer
getCommunity()
getCurrentAgentsList() AbstractActivableContainer
getGroup()
getRole()
getShuffledAgentsIterator() AbstractActivableContainer
initialize() RoleActivator
numberOfAgents() AbstractActivableContainer
update(agent, added) AbstractActivator




Mapping to Agent Context

The following tables permit to retreive the Janus features in an agent context (Agent or Kernel agent) of the Madkit features.

Let Agent class extends RolePlayer, so that all functions available for RolePlayer are also available for Agent.

Let KernelAgent class extends Agent, so that all functions available for Agent are also available for KernelAgent.


AbstractAgent

Madkit Janus
Class Function
activate() Agent
end() Agent
getAgentInformation(). getCreationDate() Agent
getAgentInformation(). getOwner() Agent
KernelAgent
getController() Agent controller is the agent or its roles.
getCurrentKernelAddress() Agent
getMessageBoxSize() Agent
isMessageBoxEmpty() Agent
killAgent (agentInstance) Agent
launchAgent (agentInstance, name, hasGUI) Agent
launchAgent (agentInstance, name, position, dimension)
nextMessage() Agent
sendMessage (agentAddress, message) Agent
setController (controller) Agent see role playing


Agent

Madkit Janus
Class Function
connectAgencyToAgency (host, port) NetworkingKernelAgent see network support.
createPlace (place) NetworkingKernelAgent see network support.
createPlace (place, information) NetworkingKernelAgent see network support.
enableMobility (name) NetworkingKernelAgent see network support.
enableMobility (name, port) NetworkingKernelAgent see network support.
exitImmediatlyonKill () NetworkingKernelAgent "commit suicide" flag.
getAgentNamed (name) Agent
joinPlace (place, pwd) NetworkingKernelAgent see network support.
joinPlace (community, place, pwd) NetworkingKernelAgent see network support.
live() Agent
pause(t) Agent
receiveMessage (message) Agent see Mailbox.
run() Kernel
waitNextMessage()
waitNextMessage(timeout)


Activator

Madkit Janus
Class Function
execute() AgentActivator
getAgentNb() AbstractActivableContainer
getAgentIterator() AbstractActivableContainer
getCommunity()
getCurrentAgentsList() AbstractActivableContainer
getGroup()
getRole()
getShuffledAgentsIterator() AbstractActivableContainer
initialize() AgentActivator
numberOfAgents() AbstractActivableContainer
update(agent, added) AbstractActivator


Scheduler

Madkit Janus
Class Function
addActivator (activator) AbstractScheduler
addActivator (activator, accessCard) AbstractScheduler
end() AbstractScheduler
getActivators() AbstractActivableContainer
removeActivator (activator) AbstractScheduler
removeActivators() AbstractScheduler

SynchroScheduler

Madkit Janus
Class Function
addActivator (activator) AbstractScheduler
addActivator (activator, accessCard) AbstractScheduler
end() AbstractScheduler
getActivators() AbstractActivableContainer
removeActivator (activator) AbstractScheduler
removeActivators() AbstractScheduler

Migrate from TurtleKit to Janus

TurtleKit is an extension of MadKit. It provides a discrete situated environment and a high-level language similar to LOGO.

TurtleKit source code could be mapped to Jaak, which is a Janus extention with discrete situated 2D environment.

External References

  • [1] MadKit website
  • [2] TurleKit website

Related Pages

2012-04-30Internet service is up again after 5 days of broken service.
This page was last modified on 9 May 2012, at 07:18. This page has been accessed 1,162 times.
Copyright 2010-2012 © Janus Core Developers - Privacy policy