A B C D E F G H I J L M N O P R S T U V W X Y Z _ 

A

addClockListener(ClockListener) - Method in class jbotsim.ClockManager
Registers the specified listener to every pulse of the clock.
addClockListener(ClockListener) - Method in class jbotsim.Topology
Registers the specified listener to the events of the clock.
addClockListener(ClockListener, int) - Method in class jbotsim.ClockManager
Registers the specified listener to the events of the clock.
addClockListener(ClockListener, int) - Method in class jbotsim.Topology
Registers the specified listener to the events of the clock.
addConnectivityListener(ConnectivityListener) - Method in class jbotsim.Topology
Registers the specified topology listener to this topology.
addConnectivityListener(ConnectivityListener, boolean) - Method in class jbotsim.Topology
Registers the specified connectivity listener to this topology.
addLink(Link) - Method in class jbotsim.Topology
Adds the specified link to this topology.
addLink(Link, boolean) - Method in class jbotsim.Topology
Adds the specified link to this topology without notifying the listeners (if silent is true).
addMessageListener(MessageListener) - Method in class jbotsim.Topology
Registers the specified message listener to this topology.
addMovementListener(MovementListener) - Method in class jbotsim.Topology
Registers the specified movement listener to this topology.
addNode(double, double) - Method in class jbotsim.Topology
Adds a new node to this topology at the specified location.
addNode(double, double, Node) - Method in class jbotsim.Topology
Adds the specified node to this topology at the specified location.
addNode(Node) - Method in class jbotsim.Topology
Adds the specified node to this topology.
addPropertyListener(PropertyListener) - Method in class jbotsim._Properties
Registers the specified property listener to this node.
addSelectionListener(SelectionListener) - Method in class jbotsim.Topology
Registers the specified selection listener to this topology.
addStartListener(StartListener) - Method in class jbotsim.Topology
Registers the specified start listener to this topology.
addTopologyListener(TopologyListener) - Method in class jbotsim.Topology
Registers the specified topology listener to this topology.

B

black - Static variable in class jbotsim.Color
 
BLACK - Static variable in class jbotsim.Color
 
blue - Static variable in class jbotsim.Color
 
BLUE - Static variable in class jbotsim.Color
 
brighter() - Method in class jbotsim.Color
 

C

clear() - Method in class jbotsim.Topology
Removes all the nodes (and links) of this topology.
clearLinks() - Method in class jbotsim.Topology
Removes all the links of this topology.
clearMessages() - Method in class jbotsim.Topology
Removes all the ongoing messages in this topology.
Clock - Class in jbotsim
 
Clock(ClockManager) - Constructor for class jbotsim.Clock
 
CLOCKBASED - jbotsim.Topology.RefreshMode
 
ClockListener - Interface in jbotsim.event
 
ClockManager - Class in jbotsim
 
clone() - Method in class jbotsim.Point
 
Color - Class in jbotsim
* Original code AWT
Color(int) - Constructor for class jbotsim.Color
 
Color(int, boolean) - Constructor for class jbotsim.Color
 
Color(int, int, int) - Constructor for class jbotsim.Color
 
Color(int, int, int, int) - Constructor for class jbotsim.Color
 
compareTo(Link) - Method in class jbotsim.Link
Compares the specified link to this link in terms of length.
compareTo(Node) - Method in class jbotsim.Node
 
ConnectivityListener - Interface in jbotsim.event
 
currentTime() - Method in class jbotsim.ClockManager
Returns the current round number.
cyan - Static variable in class jbotsim.Color
 
CYAN - Static variable in class jbotsim.Color
 

D

DARK_GRAY - Static variable in class jbotsim.Color
 
darker() - Method in class jbotsim.Color
 
darkGray - Static variable in class jbotsim.Color
 
decode(String) - Static method in class jbotsim.Color
 
DEFAULT_COLOR - Static variable in class jbotsim.Link
 
DEFAULT_COLOR - Static variable in class jbotsim.Node
 
DEFAULT_COMMUNICATION_RANGE - Static variable in class jbotsim.Topology
 
DEFAULT_DIRECTION - Static variable in class jbotsim.Node
 
DEFAULT_HEIGHT - Static variable in class jbotsim.Topology
 
DEFAULT_MODE - Static variable in class jbotsim.Link
 
DEFAULT_SENSING_RANGE - Static variable in class jbotsim.Topology
 
DEFAULT_SIZE - Static variable in class jbotsim.Node
 
DEFAULT_TYPE - Static variable in class jbotsim.Link
 
DEFAULT_WIDTH - Static variable in class jbotsim.Link
 
DEFAULT_WIDTH - Static variable in class jbotsim.Topology
 
DefaultClock - Class in jbotsim
 
DefaultClock(ClockManager) - Constructor for class jbotsim.DefaultClock
 
DefaultScheduler - Class in jbotsim
 
DefaultScheduler() - Constructor for class jbotsim.DefaultScheduler
 
destination - Variable in class jbotsim.Link
The destination node of this link (if directed), the second endpoint otherwise.
DIRECTED - jbotsim.Link.Type
 
disableWireless() - Method in class jbotsim.Node
Disables this node's wireless capabilities.
disableWireless() - Method in class jbotsim.Topology
Disables this node's wireless capabilities.
distance(double, double) - Method in class jbotsim.Node
Returns the distance between this node and the specified 2D location.
distance(double, double) - Method in class jbotsim.Point
 
distance(double, double, double) - Method in class jbotsim.Node
Returns the distance between this node and the specified 3D location.
distance(double, double, double) - Method in class jbotsim.Point
 
distance(double, double, double, double) - Static method in class jbotsim.Point
 
distance(Node) - Method in class jbotsim.Node
Returns the distance between this node and the specified node.
distance(Point) - Method in class jbotsim.Node
Returns the distance between this node and the specified 3D location.
distance(Point) - Method in class jbotsim.Point
 

E

enableWireless() - Method in class jbotsim.Node
Enables this node's wireless capabilities.
enableWireless() - Method in class jbotsim.Topology
Enables this node's wireless capabilities.
endpoint(int) - Method in class jbotsim.Link
Returns the requested endpoint node of this link
endpoints() - Method in class jbotsim.Link
Returns an list containing the two endpoint nodes of this link
equals(Object) - Method in class jbotsim.Link
Compares the specified object with this link for equality.
equals(Object) - Method in class jbotsim.Point
 
EVENTBASED - jbotsim.Topology.RefreshMode
 

F

findNodeById(int) - Method in class jbotsim.Topology
Returns the first node found with this ID.

G

getAlpha() - Method in class jbotsim.Color
 
getBasicColors() - Static method in class jbotsim.Color
 
getBlue() - Method in class jbotsim.Color
 
getClock() - Method in class jbotsim.ClockManager
Returns a reference to the Clock.
getClockModel() - Method in class jbotsim.ClockManager
Returns the clock model currently in use.
getClockModel() - Method in class jbotsim.Topology
Returns the clock model currently in use.
getClockSpeed() - Method in class jbotsim.Topology
Returns the global duration of a round in this topology (in millisecond).
getColor() - Method in class jbotsim.Link
Returns the color of this link as a string.
getColor() - Method in class jbotsim.Node
Returns the color of this node.
getColor(String) - Static method in class jbotsim.Color
 
getColor(String, int) - Static method in class jbotsim.Color
 
getColor(String, Color) - Static method in class jbotsim.Color
 
getCommonLinkWith(Node) - Method in class jbotsim.Node
Returns the undirected link whose endpoints are this node and the specified node, if any such link exists.
getCommunicationRange() - Method in class jbotsim.Node
Returns the communication range of this node (as a radius).
getCommunicationRange() - Method in class jbotsim.Topology
Returns the default communication range.
getContent() - Method in class jbotsim.Message
The content of this message, which may be an object of any class.
getDefaultNodeModel() - Method in class jbotsim.Topology
Returns the default node model, all properties assigned to this virtual node will be given to further nodes created without explicit model name.
getDestination() - Method in class jbotsim.Message
The destination of this message.
getDirection() - Method in class jbotsim.Node
Returns the current direction angle of this node (in radians).
getFlag() - Method in class jbotsim.Message
Returns the flag of this message.
getGreen() - Method in class jbotsim.Color
 
getHeight() - Method in class jbotsim.Topology
Returns the height of this topology.
getID() - Method in class jbotsim.Node
Returns the identifier of this node.
getInLinkFrom(Node) - Method in class jbotsim.Node
Returns the directed link whose destination is this node and sender is the specified node, if any such link exists.
getInLinks() - Method in class jbotsim.Node
Returns a list containing all links for which this node is the destination.
getInNeighbors() - Method in class jbotsim.Node
Returns a list containing every node serving as source for an adjacent directed link.
getIntColor() - Method in class jbotsim.Node
Returns the color of this node.
getJTopology() - Method in class jbotsim.Topology
Deprecated.
was indirectly a dependency to Swing (through JTopology); The method still returns it, but only as an "Object" for this reason.
getLabel() - Method in class jbotsim.Node
Returns the label of this node.
getLength() - Method in class jbotsim.Link
Returns the euclidean distance between this link endpoints.
getLink(Node, Node) - Method in class jbotsim.Topology
Returns the undirected link shared the specified nodes, if any.
getLink(Node, Node, boolean) - Method in class jbotsim.Topology
Returns the link of the specified type between the specified nodes, if any.
getLinkResolver() - Method in class jbotsim.Topology
Return the current LinkResolver
getLinks() - Method in class jbotsim.Node
Returns a list containing all undirected links adjacent to this node.
getLinks() - Method in class jbotsim.Topology
Returns a list containing all undirected links in this topology.
getLinks(boolean) - Method in class jbotsim.Node
Returns a list containing all adjacent links of the specified type.
getLinks(boolean) - Method in class jbotsim.Topology
Returns a list containing all links of the specified type in this topology.
getLocation() - Method in class jbotsim.Node
Returns the location of this node.
getMailbox() - Method in class jbotsim.Node
Returns a list of messages representing the mailbox of this node.
getMessageEngine() - Method in class jbotsim.Topology
Gets a reference on the message engine of this topology.
getModelsNames() - Method in class jbotsim.Topology
Returns the set registered node classes.
getNeighbors() - Method in class jbotsim.Node
Returns a list containing every node located at the opposite endpoint of an adjacent undirected links.
getNodeModel(String) - Method in class jbotsim.Topology
Returns the node class corresponding to that name.
getNodes() - Method in class jbotsim.Topology
Returns a list containing all the nodes in this topology.
getOtherEndpoint(Node) - Method in class jbotsim.Link
Returns the node located at the opposite of the specified node (reference node) on the underlying link.
getOutbox() - Method in class jbotsim.Node
Returns a list of the messages that this node is about to send.
getOutLinks() - Method in class jbotsim.Node
Returns a list containing all links for which this node is the sender.
getOutLinkTo(Node) - Method in class jbotsim.Node
Returns the directed link whose sender is this node and destination is the specified node, if any such link exists.
getOutNeighbors() - Method in class jbotsim.Node
Returns a list containing every node serving as destination for an adjacent directed link.
getProperty(String) - Method in class jbotsim._Properties
Returns the property stored under the specified key.
getRandomColor() - Static method in class jbotsim.Color
 
getRed() - Method in class jbotsim.Color
 
getRefreshMode() - Method in class jbotsim.Topology
Returns the current refresh mode (CLOCKBASED or EVENTBASED).
getRGB() - Method in class jbotsim.Color
 
getScheduler() - Method in class jbotsim.Topology
Gets a reference on the scheduler.
getSender() - Method in class jbotsim.Message
The sender of this message.
getSensedNodes() - Method in class jbotsim.Node
Returns a list containing every node located within the sensing range The returned list can be modified without side effect.
getSensingRange() - Method in class jbotsim.Node
Returns the sensing range of this node (as a radius).
getSensingRange() - Method in class jbotsim.Topology
Returns the default sensing range,
getSize() - Method in class jbotsim.Node
Returns the size of this node.
getState() - Method in class jbotsim.Node
Deprecated.
Use setLabel() instead.
getTime() - Method in class jbotsim.Node
Returns the current time (current round number)
getTime() - Method in class jbotsim.Topology
Returns the current time (current round number)
getTimeUnit() - Method in class jbotsim.Clock
Returns the time unit of the clock, in milliseconds.
getTimeUnit() - Method in class jbotsim.ClockManager
Returns the time unit of the clock, in milliseconds.
getTimeUnit() - Method in class jbotsim.DefaultClock
Returns the duration of one time unit, in milliseconds.
getTopology() - Method in class jbotsim.Link
Returns the parent topology of this link, if any.
getTopology() - Method in class jbotsim.Node
Returns the parent topology of this node, if any.
getWidth() - Method in class jbotsim.Link
Returns the width of this link.
getWidth() - Method in class jbotsim.Topology
Returns the width of this topology.
getWirelessStatus() - Method in class jbotsim.Topology
Returns true if wireless links are enabled.
getX() - Method in class jbotsim.Node
Returns the x-coordinate of this node.
getX() - Method in class jbotsim.Point
 
getY() - Method in class jbotsim.Node
Returns the y-coordinate of this node.
getY() - Method in class jbotsim.Point
 
getZ() - Method in class jbotsim.Node
Returns the z-coordinate of this node.
getZ() - Method in class jbotsim.Point
 
gray - Static variable in class jbotsim.Color
 
GRAY - Static variable in class jbotsim.Color
 
green - Static variable in class jbotsim.Color
 
GREEN - Static variable in class jbotsim.Color
 

H

hasDirectedLinks() - Method in class jbotsim.Topology
Returns true if this topology has at least one directed link.
hashCode() - Method in class jbotsim.Point
 
hasNeighbors() - Method in class jbotsim.Node
Indicates whether this node has at least one neighbor (undirected)
hasProperty(String) - Method in class jbotsim._Properties
Returns the property stored under the specified key.

I

isDirected() - Method in class jbotsim.Link
Returns true if the link type is directed, false otherwise.
isHeardBy(Node, Node) - Method in class jbotsim.LinkResolver
 
isRunning() - Method in class jbotsim.Clock
Indicates whether the clock is currently running or paused.
isRunning() - Method in class jbotsim.ClockManager
Indicates whether the clock is currently running or paused.
isRunning() - Method in class jbotsim.DefaultClock
Indicates whether the clock is currently running or paused.
isRunning() - Method in class jbotsim.Topology
Indicates whether the internal clock is currently running or in pause.
isStarted() - Method in class jbotsim.Topology
 
isWireless() - Method in class jbotsim.Link
Returns true if the link mode is wireless, false otherwise.
isWirelessEnabled() - Method in class jbotsim.Node
Indicates whether this node has wireless capabilities enabled.

J

jbotsim - package jbotsim
 
jbotsim.event - package jbotsim.event
 

L

LIGHT_GRAY - Static variable in class jbotsim.Color
 
lightGray - Static variable in class jbotsim.Color
 
Link - Class in jbotsim
 
Link(Node, Node) - Constructor for class jbotsim.Link
Creates an undirected wired link between the two specified nodes.
Link(Node, Node, Link.Mode) - Constructor for class jbotsim.Link
Creates a link with the specified mode between the nodes from and to.
Link(Node, Node, Link.Type) - Constructor for class jbotsim.Link
Creates a wired link of the specified type between the nodes from and to.
Link(Node, Node, Link.Type, Link.Mode) - Constructor for class jbotsim.Link
Creates a link of the specified type with the specified mode between the nodes from and to.
Link.Mode - Enum in jbotsim
Enumerates the two possible modes of a link: Mode.WIRED and Mode.WIRELESS.
Link.Type - Enum in jbotsim
Enumerates the two possible types of a link: Type.DIRECTED and Type.UNDIRECTED.
LinkResolver - Class in jbotsim
 
LinkResolver() - Constructor for class jbotsim.LinkResolver
 

M

magenta - Static variable in class jbotsim.Color
 
MAGENTA - Static variable in class jbotsim.Color
 
Message - Class in jbotsim
 
Message() - Constructor for class jbotsim.Message
Default constructor with empty content
Message(Object) - Constructor for class jbotsim.Message
 
Message(Object, String) - Constructor for class jbotsim.Message
 
Message(Message) - Constructor for class jbotsim.Message
Copy constructor
MessageEngine - Class in jbotsim
 
MessageEngine() - Constructor for class jbotsim.MessageEngine
 
MessageListener - Interface in jbotsim.event
 
mode - Variable in class jbotsim.Link
The Mode of this link (wired/wireless)
move() - Method in class jbotsim.Node
Translates the location of this node by one unit towards the node's current direction.
move(double) - Method in class jbotsim.Node
Translates the location of this node by the specified distance towards the node's current direction.
MovementListener - Interface in jbotsim.event
 

N

newInstanceOfModel(String) - Method in class jbotsim.Topology
Create a new instance of this type of node.
Node - Class in jbotsim
 
Node() - Constructor for class jbotsim.Node
 

O

onClock() - Method in class jbotsim.ClockManager
 
onClock() - Method in interface jbotsim.event.ClockListener
Called periodically by the central scheduler.
onClock() - Method in class jbotsim.MessageEngine
 
onClock() - Method in class jbotsim.Node
Override this method to perform some action upon clock pulse.
onClock() - Method in class jbotsim.Topology
 
onClock(Topology, List<ClockListener>) - Method in class jbotsim.DefaultScheduler
 
onClock(Topology, List<ClockListener>) - Method in interface jbotsim.Scheduler
 
onDirectedLinkAdded(Link) - Method in class jbotsim.Node
Called when an adjacent directed link is added
onDirectedLinkRemoved(Link) - Method in class jbotsim.Node
Called when an adjacent directed link is removed
onLinkAdded(Link) - Method in interface jbotsim.event.ConnectivityListener
Notifies the underlying listener that a link has been added.
onLinkAdded(Link) - Method in class jbotsim.Node
Called when an adjacent undirected link is added
onLinkRemoved(Link) - Method in interface jbotsim.event.ConnectivityListener
Notifies the underlying listener that a link has been removed.
onLinkRemoved(Link) - Method in class jbotsim.Node
Called when an adjacent undirected link is removed
onMessage(Message) - Method in interface jbotsim.event.MessageListener
Notifies the underlying MessageListener that a message has arrived.
onMessage(Message) - Method in class jbotsim.Node
Called when this node receives a message
onMove() - Method in class jbotsim.Node
Override this method to perform some action when the node moves.
onMove(Node) - Method in interface jbotsim.event.MovementListener
Notifies the underlying listener that a node has moved.
onNodeAdded(Node) - Method in interface jbotsim.event.TopologyListener
Notifies the underlying listener that a node has been added to the topology.
onNodeRemoved(Node) - Method in interface jbotsim.event.TopologyListener
Notifies the underlying listener that a node has been removed to the topology.
onPostClock() - Method in class jbotsim.Node
Override this method to perform some action just after clock pulse.
onPreClock() - Method in class jbotsim.Node
Override this method to perform some action just before clock pulse.
onSelection() - Method in class jbotsim.Node
Called when this node is selected (e.g. middle click in the UI)
onSelection(Node) - Method in interface jbotsim.event.SelectionListener
Notifies the underlying listener that a node has selected.
onSensingIn(Node) - Method in class jbotsim.Node
Called when another node is sensed for the first time
onSensingOut(Node) - Method in class jbotsim.Node
Called when a sensed node is no more sensed
onStart() - Method in interface jbotsim.event.StartListener
Notifies that a restart was requested on this topology.
onStart() - Method in class jbotsim.Node
Override this method to re-initialise your node (e.g. your variables).
onStop() - Method in class jbotsim.Node
This method is called just before the node is removed from the topology.
orange - Static variable in class jbotsim.Color
 
ORANGE - Static variable in class jbotsim.Color
 

P

pause() - Method in class jbotsim.Clock
Pauses the clock.
pause() - Method in class jbotsim.ClockManager
Pauses the clock (or increments the pause counter).
pause() - Method in class jbotsim.DefaultClock
Pauses the clock.
pause() - Method in class jbotsim.Topology
Pauses the clock (or increments the pause counter).
pink - Static variable in class jbotsim.Color
 
PINK - Static variable in class jbotsim.Color
 
Point - Class in jbotsim
 
Point() - Constructor for class jbotsim.Point
 
Point(double, double) - Constructor for class jbotsim.Point
 
Point(double, double, double) - Constructor for class jbotsim.Point
 
Point(Point) - Constructor for class jbotsim.Point
 
propertyChanged(_Properties, String) - Method in interface jbotsim.event.PropertyListener
Notifies that a property of this object has changed.
PropertyListener - Interface in jbotsim.event
 

R

red - Static variable in class jbotsim.Color
 
RED - Static variable in class jbotsim.Color
 
removeClockListener(ClockListener) - Method in class jbotsim.ClockManager
Unregisters the specified listener.
removeClockListener(ClockListener) - Method in class jbotsim.Topology
Unregisters the specified listener.
removeConnectivityListener(ConnectivityListener) - Method in class jbotsim.Topology
Unregisters the specified connectivity listener from the 'undirected' listeners.
removeConnectivityListener(ConnectivityListener, boolean) - Method in class jbotsim.Topology
Unregisters the specified connectivity listener from the listeners of the specified type.
removeLink(Link) - Method in class jbotsim.Topology
Removes the specified link from this topology.
removeMessageListener(MessageListener) - Method in class jbotsim.Topology
Unregisters the specified message listener for this topology.
removeMovementListener(MovementListener) - Method in class jbotsim.Topology
Unregisters the specified movement listener for this topology.
removeNode(Node) - Method in class jbotsim.Topology
Removes the specified node from this topology.
removeProperty(String) - Method in class jbotsim._Properties
Removes the specified property.
removePropertyListener(PropertyListener) - Method in class jbotsim._Properties
Unregisters the specified property listener for this node.
removeSelectionListener(SelectionListener) - Method in class jbotsim.Topology
Unregisters the specified selection listener for this topology.
removeStartListener(StartListener) - Method in class jbotsim.Topology
Unregisters the specified selection listener for this topology.
removeTopologyListener(TopologyListener) - Method in class jbotsim.Topology
Unregisters the specified topology listener.
reset() - Method in class jbotsim.ClockManager
Sets the clock time to 0.
resetTime() - Method in class jbotsim.Topology
Reset the round number to 0.
restart() - Method in class jbotsim.Topology
(Re)init the nodes through their onStart() method (and notifies StartListeners as well)
resume() - Method in class jbotsim.Clock
Resumes the clock if it was paused.
resume() - Method in class jbotsim.ClockManager
Resumes the clock (or decrements the pause counter).
resume() - Method in class jbotsim.DefaultClock
Resumes the clock if it was paused.
resume() - Method in class jbotsim.Topology
Resumes the clock (or decrements the pause counter).
run() - Method in class jbotsim.DefaultClock
 

S

Scheduler - Interface in jbotsim
 
SelectionListener - Interface in jbotsim.event
 
selectNode(Node) - Method in class jbotsim.Topology
 
send(Node, Object) - Method in class jbotsim.Node
Same as send(), but the content is directly given as parameter (a message will be created to contain it).
send(Node, Message) - Method in class jbotsim.Node
Sends a message from this node to the specified destination node.
sendAll(Object) - Method in class jbotsim.Node
Same as sendAll(), but the content is directly given as parameter (a message will be created to contain it).
sendAll(Message) - Method in class jbotsim.Node
Sends a message to all neighbors.
sendRetry(Node, Object) - Method in class jbotsim.Node
Same as sendRetry(), but the content is directly given as parameter (a message will be created to contain it).
sendRetry(Node, Message) - Method in class jbotsim.Node
Same method as send(), but retries to send the message later if the link to the destination disappeared during transmission.
setClockModel(Class<? extends Clock>) - Method in class jbotsim.ClockManager
Sets the clock model (to be instantiated automatically).
setClockModel(Class<? extends Clock>) - Method in class jbotsim.Topology
Sets the clock model (to be instantiated automatically).
setClockSpeed(int) - Method in class jbotsim.Topology
Sets the global duration of a round in this topology (in millisecond).
setColor(Color) - Method in class jbotsim.Link
Sets the color of this link as a string.
setColor(Color) - Method in class jbotsim.Node
Sets the color of this node.
setCommunicationRange(double) - Method in class jbotsim.Node
Activates the wireless capabilities of this node and sets its communication range to the specified radius.
setCommunicationRange(double) - Method in class jbotsim.Topology
Sets the default communication range.
setDebug(boolean) - Method in class jbotsim.MessageEngine
 
setDefaultNodeModel(Class<? extends Node>) - Method in class jbotsim.Topology
Sets the default node model to the given node instance.
setDimensions(int, int) - Method in class jbotsim.Topology
Sets the topology dimensions as indicated.
setDirection(double) - Method in class jbotsim.Node
Sets the direction angle of this node (in radians).
setDirection(Point) - Method in class jbotsim.Node
Sets the direction angle of this node using the specified reference point.
setDirection(Point, boolean) - Method in class jbotsim.Node
Sets the direction angle of this node using the specified reference point.
setIcon(String) - Method in class jbotsim.Node
Sets the icon of this node.
setID(int) - Method in class jbotsim.Node
Sets the identifier of this node.
setIntColor(Integer) - Method in class jbotsim.Node
Sets the color of this node.
setLabel(Object) - Method in class jbotsim.Node
Sets the label of this node.
setLinkResolver(LinkResolver) - Method in class jbotsim.Topology
Replaces the default Wireless Link Resolver by a custom one.
setLocation(double, double) - Method in class jbotsim.Node
Changes this node's location to the specified coordinates.
setLocation(double, double) - Method in class jbotsim.Point
 
setLocation(double, double, double) - Method in class jbotsim.Node
Changes this node's location to the specified coordinates.
setLocation(Point) - Method in class jbotsim.Node
Changes this node's location to the specified 2D point.
setLocation(Point) - Method in class jbotsim.Point
 
setMessageEngine(MessageEngine) - Method in class jbotsim.Topology
Sets the message engine of this topology.
setNodeModel(String, Class<? extends Node>) - Method in class jbotsim.Topology
Adds the given node instance as a model.
setProperty(String, Object) - Method in class jbotsim._Properties
Stores the specified property (value) under the specified name (key).
setRandomColor() - Method in class jbotsim.Node
Assign a random color to this node.
setRefreshMode(Topology.RefreshMode) - Method in class jbotsim.Topology
Sets the updates (links, sensed objects, etc.) to be instantaneous (EVENTBASED), or periodic after each round (CLOCKBASED).
setScheduler(Scheduler) - Method in class jbotsim.Topology
Sets the scheduler of this topology.
setSensingRange(double) - Method in class jbotsim.Node
Sets the sensing range of this node to the specified radius.
setSensingRange(double) - Method in class jbotsim.Topology
Sets the default sensing range.
setSize(int) - Method in class jbotsim.Node
Sets the size of this node.
setSpeed(int) - Method in class jbotsim.MessageEngine
 
setState(Object) - Method in class jbotsim.Node
Deprecated.
Use setLabel() instead.
setTimeUnit(int) - Method in class jbotsim.Clock
Sets the time unit of the clock to the specified value in millisecond.
setTimeUnit(int) - Method in class jbotsim.ClockManager
Sets the time unit of the clock to the specified value in millisecond.
setTimeUnit(int) - Method in class jbotsim.DefaultClock
Sets the time unit of the clock to the specified value in millisecond.
setTopology(Topology) - Method in class jbotsim.MessageEngine
 
setWidth(Integer) - Method in class jbotsim.Link
Sets the width of this link.
setWirelessStatus(boolean) - Method in class jbotsim.Node
Set wireless capabilities status
setWirelessStatus(boolean) - Method in class jbotsim.Topology
Set wireless capabilities status
shuffleNodeIds() - Method in class jbotsim.Topology
Shuffles the IDs of the nodes in this topology.
source - Variable in class jbotsim.Link
The source node of this link (if directed), the first endpoint otherwise.
start() - Method in class jbotsim.Clock
Starts the clock.
start() - Method in class jbotsim.ClockManager
Starts the clock (if no model is set, DefaultClock is used).
start() - Method in class jbotsim.DefaultClock
Starts the clock.
start() - Method in class jbotsim.Topology
Initializes the clock.
StartListener - Interface in jbotsim.event
 
step() - Method in class jbotsim.Topology
Performs a single round, then switch to pause state.

T

testColorValueRange(float, float, float, float) - Method in class jbotsim.Color
 
testColorValueRange(int, int, int, int) - Method in class jbotsim.Color
 
Topology - Class in jbotsim
 
Topology() - Constructor for class jbotsim.Topology
Creates a topology.
Topology(int, int) - Constructor for class jbotsim.Topology
Creates a topology of given dimensions.
Topology.RefreshMode - Enum in jbotsim
 
TopologyListener - Interface in jbotsim.event
 
toString() - Method in class jbotsim.Link
Returns a string representation of this link.
toString() - Method in class jbotsim.Message
 
toString() - Method in class jbotsim.Node
Returns a string representation of this node.
toString() - Method in class jbotsim.Point
 
toString() - Method in class jbotsim.Topology
 
translate(double, double) - Method in class jbotsim.Node
Translates the location of this node by the specified coordinates.
translate(double, double, double) - Method in class jbotsim.Node
Translates the location of this node by the specified coordinates.
type - Variable in class jbotsim.Link
The Type of this link (directed/undirected)

U

UNDIRECTED - jbotsim.Link.Type
 

V

valueOf(String) - Static method in enum jbotsim.Link.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum jbotsim.Link.Type
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum jbotsim.Topology.RefreshMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum jbotsim.Link.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum jbotsim.Link.Type
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum jbotsim.Topology.RefreshMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

white - Static variable in class jbotsim.Color
 
WHITE - Static variable in class jbotsim.Color
 
WIRED - jbotsim.Link.Mode
 
WIRELESS - jbotsim.Link.Mode
 
withDestination(Node) - Method in class jbotsim.Message
Copy the current message, changing only the destination
wrapLocation() - Method in class jbotsim.Node
Changes this node's location modulo the size of topology.

X

x - Variable in class jbotsim.Point
 

Y

y - Variable in class jbotsim.Point
 
yellow - Static variable in class jbotsim.Color
 
YELLOW - Static variable in class jbotsim.Color
 

Z

z - Variable in class jbotsim.Point
 

_

_Properties - Class in jbotsim
 
_Properties() - Constructor for class jbotsim._Properties
 
A B C D E F G H I J L M N O P R S T U V W X Y Z _ 
Skip navigation links