turtlekit.simulations.virus
Class Epidemic

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by madkit.kernel.Agent
          extended by turtlekit.kernel.Launcher
              extended by turtlekit.simulations.virus.Epidemic
All Implemented Interfaces:
java.io.Serializable, java.lang.Runnable

public class Epidemic
extends Launcher

Virus transmission simulation

Version:
1.2 31/01/2000
Author:
Fabien MICHEL
See Also:
Serialized Form

Field Summary
 
Fields inherited from class turtlekit.kernel.Launcher
COMMUNITY
 
Constructor Summary
Epidemic()
           
 
Method Summary
 void addSimulationAgents()
          Override this method is compulsory (abstract).
 int getNbOfInfected()
           
 int getNbOfnonInfected()
           
 boolean getVirusType1()
           
 void setNbOfInfected(int add)
           
 void setNbOfnonInfected(int add)
           
 void setVirusType1(boolean b)
          with this accessor you choose the kind of simulation you want for the the transmission of the virus : messages (type1) or direct interaction (type2 faster)
 
Methods inherited from class turtlekit.kernel.Launcher
activate, addMyScheduler, addObserver, addObserver, addPatchVariable, addTurtle, addTurtle, addViewer, addViewer, addViewer, addViewer, addViewer, addViewer, end, getCellSize, getHeight, getSimulationName, getWidth, initGUI, initializePatchVariables, launchPython, live, setCellSize, setCyclePause, setHeight, setSimulationName, setWidth, setWrapModeOn, stopOrResumeSimulation
 
Methods inherited from class madkit.kernel.Agent
connectAgencyToAgency, createPlace, createPlace, enableMobility, enableMobility, exitImmediatlyOnKill, getAgencyNamed, joinPlace, joinPlace, joinPlace, pause, receiveMessage, run, waitNextMessage, waitNextMessage
 
Methods inherited from class madkit.kernel.AbstractAgent
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Epidemic

public Epidemic()
Method Detail

setNbOfInfected

public void setNbOfInfected(int add)

getNbOfInfected

public int getNbOfInfected()

setNbOfnonInfected

public void setNbOfnonInfected(int add)

getNbOfnonInfected

public int getNbOfnonInfected()

setVirusType1

public void setVirusType1(boolean b)
with this accessor you choose the kind of simulation you want for the the transmission of the virus : messages (type1) or direct interaction (type2 faster)


getVirusType1

public boolean getVirusType1()

addSimulationAgents

public void addSimulationAgents()
Description copied from class: Launcher
Override this method is compulsory (abstract). It is in this method that the optional agents of the simulation (turtles, viewers and observers) have to be added. To add these agents you have to use the "add" methods of a Launcher: - addTurtle - addViewer - addObserver

Specified by:
addSimulationAgents in class Launcher


Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.