turtlekit.simulations.gas
Class Gas

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by turtlekit.kernel.Turtle
          extended by turtlekit.simulations.gas.Gas
All Implemented Interfaces:
java.io.Serializable, ReferenceableAgent

public class Gas
extends Turtle

The turtle "gaz" is only a turtle who needs space !!!

Version:
1.1 6/12/1999
Author:
Fabien MICHEL
See Also:
Serialized Form

Field Summary
 
Fields inherited from class turtlekit.kernel.Turtle
East, North, NorthEast, NorthWest, South, SouthEast, SouthWest, West
 
Constructor Summary
Gas(int w)
           
 
Method Summary
 java.lang.String go()
          The gas looks for free space (without an other turtle or a wall) but can't go through the wall (white color patches) and rebounds against the sides of the world
 void setup()
           
 
Methods inherited from class turtlekit.kernel.Turtle
activate, bk, countTurtlesAt, countTurtlesHere, createTurtle, defaultAction, die, distance, distanceNowrap, dropMark, dropMarkAt, dx, dy, end, fd, getColor, getHeading, getHidden, getMark, getMarkAt, getPatchColor, getPatchColorAt, getPatchVariable, getPatchVariableAt, getSimulationGroup, getTurtleWithID, getWorldHeight, getWorldWidth, giveUpRole, home, incrementPatchVariable, incrementPatchVariableAt, isMarkPresent, isMarkPresentAt, isPlayingRole, moveTo, moveTo, mySelf, playRole, randomHeading, realX, realY, setColor, setHeading, setHidden, setPatchColor, setPatchColorAt, setX, setXY, setY, toString, towards, towardsNowrap, turnLeft, turnRight, turtlesAt, turtlesHere, xcor, ycor
 
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, 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, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gas

public Gas(int w)
Method Detail

setup

public void setup()
Overrides:
setup in class Turtle

go

public java.lang.String go()
The gas looks for free space (without an other turtle or a wall) but can't go through the wall (white color patches) and rebounds against the sides of the world



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