Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
Q
R
S
T
U
W
Z
S
saveConf()
- Method in class gps.gui.
SimGuiControl
saves configuration file
saveConfig(File)
- Method in class gps.protocol.BT.
BTPanel
save properties into config file
saveConfToFile(String, Properties)
- Static method in class gps.util.
Config
saves configuration to file at the specified path
saveConfToFile(File, Properties)
- Static method in class gps.util.
Config
saves configuration to File object
saveConfToFileGUI(String, Properties, JFrame)
- Static method in class gps.util.
Config
saves configuration to file at the specified path, with messagebox if any error exists.
saveConfToFileGUI(File, Properties, JFrame)
- Static method in class gps.util.
Config
saves configuration to File object, with messagebox if any error exists.
select(double[], double)
- Method in class gps.util.
PowerLaw
selects item using power law probability of selecting array item: p(ni) = k * (ni^p) k is a normalisation constant p(ni) = 0 if ni is zero, even when p < 0
selectPeers(List)
- Method in class gps.protocol.BT.algorithm.
BTAlgorithmPeerSelectionAtPeer
selects peers having documents from peers local record
selectPeers(List)
- Method in class gps.protocol.BT.algorithm.
BTAlgorithmPeerSelectionAtTracker
selects peers having documents from trackers database
selectPiece(BTSession, BTPeer)
- Method in class gps.protocol.BT.algorithm.
BTAlgorithmPieceSelection
select a suitable piece for request
sendChoked(boolean, BTPeer)
- Method in class gps.protocol.BT.
BTSession
send choked type peer message
sendInterested(boolean, BTPeer)
- Method in class gps.protocol.BT.
BTSession
send interested type peer message
sendRequest(int, BTPeer)
- Method in class gps.protocol.BT.
BTSession
send request for a specific piece to a peer
sendRequestTo(BTPeer)
- Method in class gps.protocol.BT.
BTSession
send a piece request message to a peer
Server
- Class in
gps.protocol
Server base class, all specific protocol peers inherit from it.
Server()
- Constructor for class gps.protocol.
Server
dummy constructor
Server(int)
- Constructor for class gps.protocol.
Server
constructs a Peer with peer id
SESSION_ANNOUNCEMENT
- Static variable in class gps.protocol.BT.
BTEvent
scheduled announcement to tracker
SESSION_TRACKER_RESPONSE
- Static variable in class gps.protocol.BT.
BTEvent
reply from server, handled by session
setActive()
- Method in class gps.network.
Connection
make connection active
setAddParam(Object)
- Method in class gps.event.
SimEvent
sets the second param for the event
setAgent(int, Agent)
- Method in class gps.protocol.
Protocol
sets an agent object at the specified locaiton
setAgentNum(int)
- Method in class gps.protocol.
Protocol
sets agent number
setAgentNum(int, int)
- Method in class gps.protocol.
Protocol
sets the agent number in this topology, this method is used for p2p networks with servers and peers
setBandwidth(double)
- Method in class gps.network.
BandwidthManager
sets physical bandwidth
setBandwidth(double)
- Method in class gps.network.graph.
Link
sets bandwidth for this link
setBandwidth(double)
- Method in class gps.network.graph.
LinkProperties
sets bandwidth
setBandwidthFrom(Node, double)
- Method in class gps.network.
Connection
sets one way bandwidth
setBandwidthFrom(BTSocket, double)
- Method in class gps.protocol.BT.
BTConnection
set bandwidth for the flow origniated from a BTSocket
setBandwidthManager(BandwidthManager)
- Method in class gps.network.graph.
Link
set bandwidth manager for this link
setComment(String)
- Method in class gps.network.graph.
Graph
sets comment
setControlPanel(JPanel)
- Method in class gps.gui.
SimGuiControl
set control panel
setCosts(double)
- Method in class gps.network.graph.
LinkProperties
sets costs
setCreator(String)
- Method in class gps.network.graph.
Graph
sets creator
setDelay(double)
- Method in class gps.network.graph.
Link
sets delay for this link
setDelay(double)
- Method in class gps.network.graph.
LinkProperties
sets delay
setDirection(boolean)
- Method in class gps.network.graph.
LinkProperties
sets directional information
setDistance(double)
- Method in class gps.network.graph.
LinkProperties
sets distance
setDownloadBetweenSnubbingDetection(double)
- Method in class gps.protocol.BT.
BTSession
sets download amount between snubbing detection
setEnd(int)
- Method in class gps.
Engine
sets end time of simulation
setEnd(int)
- Method in class gps.
Simulator
set end time, so that GUI can calculate finished percentage
setEventID()
- Method in class gps.event.
SimEvent
sets next available unique id for this event
setGraph(Graph)
- Method in class gps.gui.
GraphPanel
sets graph to be displayed
setGraphFile(String)
- Method in class gps.network.graph.
Graph
sets file path
setGraphPanel(JPanel)
- Method in class gps.gui.
SimGuiControl
set graph panel
setID(int)
- Method in class gps.network.graph.
Node
set id
setInActive()
- Method in class gps.network.
Connection
makes connection inactive
setInitialValue()
- Method in class gps.gui.
ProtocolPanel
abstract function setInitialValue
setInitialValue()
- Method in class gps.protocol.BT.
BTPanel
retrieve initial value from properties and set it to GUI interface
setInterval(int)
- Method in class gps.protocol.BT.param.
BTTrackerResponse
change default interval
setKey(String)
- Method in class gps.protocol.
Document
setLabel(String)
- Method in class gps.network.graph.
LinkProperties
sets label
setLabel(String)
- Method in class gps.network.graph.
NodeProperties
sets lable for this node
setPAgent(int, Peer)
- Method in class gps.protocol.
Protocol
sets an pagent object at the specified locaiton
setPieceLength(double)
- Method in class gps.protocol.BT.
BTDocument
sets piece length
setPopularity(int)
- Method in class gps.protocol.
Document
setPP(ProtocolPanel)
- Method in class gps.
Simulator
sets protocolpanel, the handle to GUI, for GUI purpose
setProgress(int, int)
- Method in class gps.gui.
SimGui
setProperties(NodeProperties)
- Method in class gps.network.graph.
Node
sets node propertes
setProtocolProperties(Properties)
- Method in class gps.protocol.
Protocol
sets protocol properties
setSAgent(int, Server)
- Method in class gps.protocol.
Protocol
sets an sagent object at the specified locaiton
setShowNodeId(boolean)
- Method in class gps.gui.
GraphPanel
sets flag for showing id or not
setSimulatorProperties(Properties)
- Method in class gps.protocol.
Protocol
sets simulator properties
setSize(double)
- Method in class gps.protocol.BT.
BTDocument
sets the size of the document and adjust pieces
setSize(double)
- Method in class gps.protocol.
Document
setStatus(int)
- Method in class gps.protocol.
Document
setStatusBar(String)
- Method in class gps.gui.
SimGui
setTimeStamp(double)
- Method in class gps.event.
SimEvent
sets timestamp
setTorrent(BTTorrent)
- Method in class gps.protocol.BT.
BTSession
set torrent for existing session
setTraffic(String)
- Method in class gps.network.graph.
NodeProperties
sets traffic
setType(int)
- Method in class gps.event.
SimEvent
sets event type
setType(int)
- Method in class gps.network.graph.
LinkProperties
sets link type
setType(int)
- Method in class gps.network.graph.
NodeProperties
sets node type
setUp()
- Method in class gps.network.
Connection
setup this connection along links
setWhole()
- Method in class gps.protocol.BT.
BTDocument
sets whole flag of the document and each pieces
setWhole()
- Method in class gps.protocol.
Document
setX(double)
- Method in class gps.network.graph.
NodeProperties
sets x position
setY(double)
- Method in class gps.network.graph.
NodeProperties
sets y position
SIM_AGENT_ACTIVE
- Static variable in class gps.event.
SimEvent
activate an agent
SIM_AGENT_DEACTIVE
- Static variable in class gps.event.
SimEvent
deactivate an agent
SIM_END
- Static variable in class gps.event.
SimEvent
end simulation event
SIM_NODE_ACTIVE
- Static variable in class gps.event.
SimEvent
activate a node
SIM_NODE_DEACTIVE
- Static variable in class gps.event.
SimEvent
deactivate a node
SIM_START
- Static variable in class gps.event.
SimEvent
start simulation event, don't have to be explicitely triggered
SimEvent
- Class in
gps.event
the base class of all events in simulator.
SimEvent()
- Constructor for class gps.event.
SimEvent
don't do anything, just for complete
SimEvent(double, int, SimEventHandler, Object)
- Constructor for class gps.event.
SimEvent
constructs a new event with one handler
SimEvent(double, int, ArrayList, Object)
- Constructor for class gps.event.
SimEvent
constructs a new event with a list of handler
SimEventHandler
- Interface in
gps.event
provides a common interface for class that can handle events.
SimEventScheduler
- Class in
gps.event
Discrete event driver.
SimGui
- Class in
gps.gui
SimGui()
- Constructor for class gps.gui.
SimGui
SimGuiControl
- Class in
gps.gui
Control object of M/V/C, all the global commands are directed to this object
SimGuiControl(SimGui)
- Constructor for class gps.gui.
SimGuiControl
constructs new control object with gui reference
Simulator
- Class in
gps
the simulator.
Simulator()
- Constructor for class gps.
Simulator
constructs Simulator object, and load simulator configuration
SimulatorGui
- Class in
gps
SimulatorGui provides GUI for running simulation.
SimulatorPanel
- Class in
gps.gui
Panel which holds all protocol panels.
SimulatorPanel(ControlPanel, Properties)
- Constructor for class gps.gui.
SimulatorPanel
intializer
size
- Variable in class gps.gui.
GraphPanel
graph panel size
sprintf(String, double)
- Static method in class gps.util.
LogFormatter
prints a formatted number following printf conventions
sprintf(String, long)
- Static method in class gps.util.
LogFormatter
prints a formatted number following printf conventions
sprintf(String, char)
- Static method in class gps.util.
LogFormatter
prints a formatted number following printf conventions
sprintf(String, String)
- Static method in class gps.util.
LogFormatter
prints a formatted number following printf conventions
start()
- Method in class gps.gui.
ProtocolPanel
Button handler - start
start()
- Method in class gps.
Simulator
starts a new simulation
STARTED
- Static variable in class gps.protocol.BT.param.
BTGetRequest
download first begins
stop()
- Method in class gps.gui.
ProtocolPanel
Button handler - stop
stop()
- Method in class gps.gui.
SimGuiControl
pause simulation
stopIt()
- Method in class gps.
Engine
terminates simulator
stopIt()
- Method in class gps.
Simulator
terminates current simulation
STOPPED
- Static variable in class gps.protocol.BT.
BTSession
session status - stopped
STOPPED
- Static variable in class gps.protocol.BT.param.
BTGetRequest
download cancelled
syncClose()
- Method in class gps.util.
AsyncFileHandler
call regular close
syncPublish(LogRecord)
- Method in class gps.util.
AsyncFileHandler
call regular publish
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV LETTER
NEXT LETTER
FRAMES
NO FRAMES
All Classes
A
B
C
D
E
F
G
H
I
K
L
M
N
O
P
Q
R
S
T
U
W
Z