Class simulation


public class simulation
extends JPanel

Field Summary

(package private) JButton
Play
(package private) JButton
addLink
(package private) JButton
addRouter
(package private) JButton
clear
(package private) JComboBox
comboBox
Flooding
currentFlooding
(package private) JButton
deleteRouter
(package private) JTextField
firstClickedRouter
(package private) floodingConfiguration
floodConfig
boolean
floodDet
(package private) int
lastVisitedRouter
(package private) boolean
linkMode
(package private) Vector
linkVector
(package private) boolean
moveMode
long
moveRouter
(package private) JButton
moveRouterButton
(package private) JButton
next
(package private) JButton
nextPhase
(package private) paintArea
paintSimulation
(package private) JTextField
phase
pimSM
pim
(package private) pimSMConfiguration
pimConfig
boolean
pimDet
(package private) pimSMpaintArea
pimSMpaintSimulation
(package private) Vector
routerVector
reversePathBroadcasting
rpb
(package private) rpbConfiguration
rpbConfig
boolean
rpbDet
(package private) JTextField
secondClickedRouter
(package private) long
selected_first_router
(package private) long
selected_second_router
int
step
(package private) JTextField
stepField
(package private) JTextField
textField
String
thisFileName

Constructor Summary

simulation()

Method Summary

boolean
checkPIMNetworkStatus()
boolean
checkRPBNetworkStatus()
void
clearData()
void
clearPartialData(boolean eraseTraffic)
void
clearTraffic()
long
coordinatesCheck(int xRef, int yRef)
void
deleteLink(long intID)
void
enableFlooding()
void
enableForAll()
void
enablePim()
void
enableRpb()
String
getFileName()
long
getLinkByRouter(long routerID)
simulation
getOwn()
Router
getRouter(long routerID)
Link
linkCheck(int xRef, int yRef)
void
loadNetworkFromFile()
int
removeElement(long elementID)
void
saveNetwork(boolean chosen)
void
saveNetworkToFile(String filePath, boolean chosen)
boolean
teilbar(long y, long x)

Field Details

Play

(package private)  JButton Play

addLink

(package private)  JButton addLink

addRouter

(package private)  JButton addRouter

clear

(package private)  JButton clear

comboBox

(package private)  JComboBox comboBox

currentFlooding

public Flooding currentFlooding

deleteRouter

(package private)  JButton deleteRouter

firstClickedRouter

(package private) final JTextField firstClickedRouter

floodConfig

(package private)  floodingConfiguration floodConfig

floodDet

public boolean floodDet

lastVisitedRouter

(package private)  int lastVisitedRouter

linkMode

(package private)  boolean linkMode

linkVector

(package private)  Vector linkVector

moveMode

(package private)  boolean moveMode

moveRouter

public long moveRouter

moveRouterButton

(package private)  JButton moveRouterButton

nextPhase

(package private)  JButton nextPhase

paintSimulation

(package private)  paintArea paintSimulation

phase

(package private)  JTextField phase

pim

public pimSM pim

pimConfig

(package private)  pimSMConfiguration pimConfig

pimDet

public boolean pimDet

pimSMpaintSimulation

(package private)  pimSMpaintArea pimSMpaintSimulation

routerVector

(package private)  Vector routerVector

rpb

public reversePathBroadcasting rpb

rpbConfig

(package private)  rpbConfiguration rpbConfig

rpbDet

public boolean rpbDet

secondClickedRouter

(package private) final JTextField secondClickedRouter

selected_first_router

(package private)  long selected_first_router

selected_second_router

(package private)  long selected_second_router

step

public int step

stepField

(package private)  JTextField stepField

textField

(package private)  JTextField textField

thisFileName

public String thisFileName

Constructor Details

simulation

public simulation()

Method Details

checkPIMNetworkStatus

public boolean checkPIMNetworkStatus()

checkRPBNetworkStatus

public boolean checkRPBNetworkStatus()

clearData

public void clearData()

clearPartialData

public void clearPartialData(boolean eraseTraffic)

clearTraffic

public void clearTraffic()

coordinatesCheck

public long coordinatesCheck(int xRef,
                             int yRef)

deleteLink

public void deleteLink(long intID)

enableFlooding

public void enableFlooding()

enableForAll

public void enableForAll()

enablePim

public void enablePim()

enableRpb

public void enableRpb()

getFileName

public String getFileName()

getLinkByRouter

public long getLinkByRouter(long routerID)

getOwn

public simulation getOwn()

getRouter

public Router getRouter(long routerID)

linkCheck

public Link linkCheck(int xRef,
                      int yRef)

loadNetworkFromFile

public void loadNetworkFromFile()

removeElement

public int removeElement(long elementID)

saveNetwork

public void saveNetwork(boolean chosen)

saveNetworkToFile

public void saveNetworkToFile(String filePath,
                              boolean chosen)

teilbar

public boolean teilbar(long y,
                       long x)