Skip navigation links
A B C D E F G H I J L M N O P R S T U V W _ 

A

actionPerformed(ActionEvent) - Method in class jbotsim.ui.JTopology
 
addBackgroundPainter(BackgroundPainter) - Method in class jbotsim.ui.JTopology
 
addClockListener(ClockListener, int) - Method in class jbotsim.Topology
Registers the specified listener to the events of the topology clock.
addClockListener(ClockListener) - Method in class jbotsim.Topology
Registers the specified listener to the events of the topology clock.
addCommand(String) - Method in class jbotsim.ui.JTopology
Adds the specified action command to this JTopology.
addCommandListener(CommandListener) - Method in class jbotsim.ui.JTopology
Registers the specified action listener to this JTopology.
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(Node) - Method in class jbotsim.Topology
Adds the specified node 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.
addNodePainter(NodePainter) - Method in class jbotsim.ui.JTopology
 
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.
addSlideBar(JViewer.BarType, int) - Method in class jbotsim.ui.JViewer
Adds a slide bar at the top of the 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

BackgroundPainter - Interface in jbotsim.ui.painting
Created by acasteig on 6/9/15.

C

camheight - Static variable in class jbotsim.ui.JNode
 
clear() - Method in class jbotsim.Topology
Removes all the nodes (and links) of this topology.
clearMessages() - Method in class jbotsim.Topology
Removes all the ongoing messages in this topology.
ClockListener - Interface in jbotsim.event
 
CommandListener - Interface in jbotsim.ui
 
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
 
createToolTip() - Method in class jbotsim.ui.JNode
 

D

DefaultBackgroundPainter - Class in jbotsim.ui.painting
 
DefaultBackgroundPainter() - Constructor for class jbotsim.ui.painting.DefaultBackgroundPainter
 
DefaultNodePainter - Class in jbotsim.ui.painting
 
DefaultNodePainter() - Constructor for class jbotsim.ui.painting.DefaultNodePainter
 
DefaultNodeScheduler - Class in jbotsim
 
DefaultNodeScheduler() - Constructor for class jbotsim.DefaultNodeScheduler
 
destination - Variable in class jbotsim.Link
The destination node of this link (if directed), the second endpoint otherwise.
disableDrawings() - Method in class jbotsim.ui.JTopology
Disables the drawing of links and sensing radius (if any).
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(Node) - Method in class jbotsim.Node
Returns the distance between this node and the specified node.
distance(Point2D) - Method in class jbotsim.Node
Returns the distance between this node and the specified 2D location.
distance(double, double) - Method in class jbotsim.Node
Returns the distance between this node and the specified 2D location.
distance(Point3D) - Method in class jbotsim.Node
Returns the distance between this node and the specified 3D location.
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.Point3D
 
distance(Point3D) - Method in class jbotsim.Point3D
 

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.Point3D
 

F

findNodeById(int) - Method in class jbotsim.Topology
Returns the first node found with this ID.
fromString(String) - Method in class jbotsim.Topology
Imports nodes and wired links from the specified string representation of a topology.

G

getBasicColors() - Static method in class jbotsim.Node
 
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.
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.
getDimensions() - Method in class jbotsim.Topology
Returns the topology dimensions.
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.
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
Gets a reference on the associated JTopology (if any, null otherwise).
getJTopology() - Method in class jbotsim.ui.JViewer
Returns the jtopology attached to this viewer.
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.
getLinks() - Method in class jbotsim.Node
Returns a list containing all undirected links adjacent to this node.
getLinks(boolean) - Method in class jbotsim.Node
Returns a list containing all adjacent links of the specified type.
getLinks() - Method in class jbotsim.Topology
Returns a list containing all undirected links in this topology.
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 (as a 2D point).
getLocation3D() - Method in class jbotsim.Node
Returns the location of this node (as a 3D point).
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.
getNodeScheduler() - Method in class jbotsim.Topology
Gets a reference on the node scheduler.
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.
getRefreshMode() - Method in class jbotsim.Topology
Returns the current refresh mode (CLOCKBASED or EVENTBASED).
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
Returns the state of this node.
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)
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.
getTopology() - Method in class jbotsim.ui.JTopology
 
getWidth() - Method in class jbotsim.Link
Returns the width of this link.
getWidth() - Method in class jbotsim.Topology
Returns the width of this topology.
getX() - Method in class jbotsim.Node
Returns the x-coordinate of this node.
getX() - Method in class jbotsim.Point3D
 
getY() - Method in class jbotsim.Node
Returns the y-coordinate of this node.
getY() - Method in class jbotsim.Point3D
 
getZ() - Method in class jbotsim.Node
Returns the z-coordinate of this node.
getZ() - Method in class jbotsim.Point3D
 

H

hasDirectedLinks() - Method in class jbotsim.Topology
Returns true if this topology has at least one directed link.
hashCode() - Method in class jbotsim.Point3D
 
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.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
 
jbotsim.ui - package jbotsim.ui
 
jbotsim.ui.painting - package jbotsim.ui.painting
 
JNode - Class in jbotsim.ui
 
JNode(Node) - Constructor for class jbotsim.ui.JNode
 
JTopology - Class in jbotsim.ui
 
JTopology(Topology) - Constructor for class jbotsim.ui.JTopology
Creates a new JTopology for the specified topology.
JViewer - Class in jbotsim.ui
The viewer includes a central jtopology which will draw the attached topology and offer interaction, as well as contextual commands to add or remove a communication range or sensing range tuners (slider bars), or to pause/resume the system clock.
JViewer(Topology) - Constructor for class jbotsim.ui.JViewer
Creates a windowed viewer for the specified topology.
JViewer(Topology, boolean) - Constructor for class jbotsim.ui.JViewer
Creates a viewer for the specified topology.
JViewer(JTopology) - Constructor for class jbotsim.ui.JViewer
Creates a windowed viewer encapsulating the specified jtopology.
JViewer(JTopology, boolean) - Constructor for class jbotsim.ui.JViewer
Creates a viewer encapsulating the specified jtopology.

L

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.Type) - Constructor for class jbotsim.Link
Creates a wired link of the specified type between the nodes from and to.
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, 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.
LinkPainter - Class in jbotsim.ui.painting
 
LinkPainter() - Constructor for class jbotsim.ui.painting.LinkPainter
 
LinkResolver - Class in jbotsim
 
LinkResolver() - Constructor for class jbotsim.LinkResolver
 

M

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)
mouseClicked(MouseEvent) - Method in class jbotsim.ui.JNode
 
mouseDragged(MouseEvent) - Method in class jbotsim.ui.JNode
 
mouseEntered(MouseEvent) - Method in class jbotsim.ui.JNode
 
mouseExited(MouseEvent) - Method in class jbotsim.ui.JNode
 
mouseMoved(MouseEvent) - Method in class jbotsim.ui.JNode
 
mousePressed(MouseEvent) - Method in class jbotsim.ui.JNode
 
mouseReleased(MouseEvent) - Method in class jbotsim.ui.JNode
 
mouseWheelMoved(MouseWheelEvent) - Method in class jbotsim.ui.JNode
 
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
 
NodePainter - Interface in jbotsim.ui.painting
 
NodeScheduler - Interface in jbotsim
 

O

onClock(Topology) - Method in class jbotsim.DefaultNodeScheduler
 
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(Topology) - Method in interface jbotsim.NodeScheduler
 
onClock() - Method in class jbotsim.Topology
 
onCommand(String) - Method in interface jbotsim.ui.CommandListener
 
onCommand(String) - Method in class jbotsim.ui.JViewer
 
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(Node) - Method in interface jbotsim.event.MovementListener
Notifies the underlying listener that a node has moved.
onMove() - Method in class jbotsim.Node
Override this method to perform some action when the node moves.
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(Node) - Method in interface jbotsim.event.SelectionListener
Notifies the underlying listener that a node has selected.
onSelection() - Method in class jbotsim.Node
Called when this node is selected (e.g. middle click in the UI)
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 reset this node's state.
onStop() - Method in class jbotsim.Node
This method is to be called just before the node is removed from the topology.

P

paint(Graphics) - Method in class jbotsim.ui.JNode
 
paintBackground(Graphics2D, Topology) - Method in interface jbotsim.ui.painting.BackgroundPainter
Provides a way to draw things on the background.
paintBackground(Graphics2D, Topology) - Method in class jbotsim.ui.painting.DefaultBackgroundPainter
 
paintComponent(Graphics) - Method in class jbotsim.ui.JTopology
Paints this JTopology on the specified graphics (not supposed to be used explicitly).
paintLink(Graphics2D, Link) - Method in class jbotsim.ui.painting.LinkPainter
Paints the Links.
paintNode(Graphics2D, Node) - Method in class jbotsim.ui.painting.DefaultNodePainter
 
paintNode(Graphics2D, Node) - Method in interface jbotsim.ui.painting.NodePainter
Provides a way to redefine the drawing of a node.
pause() - Method in class jbotsim.Topology
Pauses the clock (or increments the pause counter).
Point3D - Class in jbotsim
Lifted from JavaFX (under GPL licence).
Point3D(double, double, double) - Constructor for class jbotsim.Point3D
 
propertyChanged(_Properties, String) - Method in interface jbotsim.event.PropertyListener
Notifies that a property of this object has changed.
PropertyListener - Interface in jbotsim.event
 

R

removeAllCommands() - Method in class jbotsim.ui.JTopology
Removes all commands from this JTopology.
removeBackgroundPainter(BackgroundPainter) - Method in class jbotsim.ui.JTopology
 
removeClockListener(ClockListener) - Method in class jbotsim.Topology
Unregisters the specified listener.
removeCommand(String) - Method in class jbotsim.ui.JTopology
Removes the specified action command from this JTopology.
removeCommandListener(CommandListener) - Method in class jbotsim.ui.JTopology
Unregisters the specified action listener to this JTopology.
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.
removeNodePainter(NodePainter) - Method in class jbotsim.ui.JTopology
 
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.
removeSlideBar() - Method in class jbotsim.ui.JViewer
Removes the slide bar, if any.
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.
resetTime() - Method in class jbotsim.Topology
Reset the round number to 0.
restart() - Method in class jbotsim.Topology
Causes the onStart() method to be called again on each node (and each StartListener)
resume() - Method in class jbotsim.Topology
Resumes the clock (or decrements the pause counter).

S

SelectionListener - Interface in jbotsim.event
 
selectNode(Node) - Method in class jbotsim.Topology
 
send(Node, Message) - Method in class jbotsim.Node
Sends a message from this node to the specified destination node.
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).
sendAll(Message) - Method in class jbotsim.Node
Sends a message to all neighbors.
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).
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.
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).
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
 
setDefaultBackgroundPainter(BackgroundPainter) - Method in class jbotsim.ui.JTopology
 
setDefaultNodeModel(Class<? extends Node>) - Method in class jbotsim.Topology
Sets the default node model to the given node instance.
setDefaultNodePainter(NodePainter) - Method in class jbotsim.ui.JTopology
 
setDimensions(int, int) - Method in class jbotsim.Topology
 
setDirection(double) - Method in class jbotsim.Node
Sets the direction angle of this node (in radians).
setDirection(Point2D) - Method in class jbotsim.Node
Sets the direction angle of this node using the specified reference point.
setDirection(Point2D, 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.
setInteractive(boolean) - Method in class jbotsim.ui.JTopology
 
setLinkPainter(LinkPainter) - Method in class jbotsim.ui.JTopology
 
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, double) - Method in class jbotsim.Node
Changes this node's location to the specified coordinates.
setLocation(Point2D) - Method in class jbotsim.Node
Changes this node's location to the specified 2D point.
setLocation(Point3D) - Method in class jbotsim.Node
Changes this node's location to the specified 2D 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.
setNodeScheduler(NodeScheduler) - Method in class jbotsim.Topology
Sets the message engine of this topology.
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).
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.
setSize(int, int) - Method in class jbotsim.ui.JViewer
Sets the size of the inner jtopology to the specified dimension.
setSpeed(int) - Method in class jbotsim.MessageEngine
 
setState(Object) - Method in class jbotsim.Node
Sets the state of this node.
setTitle(String) - Method in class jbotsim.ui.JViewer
Sets the title of the corresponding window
setTopology(Topology) - Method in class jbotsim.MessageEngine
 
setTopology(Topology) - Method in class jbotsim.ui.JTopology
 
setWidth(Integer) - Method in class jbotsim.Link
Sets the width of this link.
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.Topology
Reset the color and width of nodes and links, then calls the onStart() method on each node.
StartListener - Interface in jbotsim.event
 
stateChanged(ChangeEvent) - Method in class jbotsim.ui.JViewer
 
step() - Method in class jbotsim.Topology
Performs a single round, then switch to pause state.

T

Topology - Class in jbotsim
 
Topology() - Constructor for class jbotsim.Topology
Creates a topology.
Topology(boolean) - Constructor for class jbotsim.Topology
Creates a topology and sets its running status (running/paused).
Topology(int, int) - Constructor for class jbotsim.Topology
Creates a topology of given dimensions.
Topology(int, int, boolean) - 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.Point3D
 
toString() - Method in class jbotsim.Topology
Returns a string representation of this 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

unsetTopology() - Method in class jbotsim.ui.JTopology
 
update() - Method in class jbotsim.ui.JNode
 
updateIcon() - Method in class jbotsim.ui.JNode
 
updateIconSize() - Method in class jbotsim.ui.JNode
 

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

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.

_

_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 _ 
Skip navigation links