edu.cmu.emulator.appServer
Class GUIWebRunner
java.lang.Object
edu.cmu.emulator.appServer.GUIWebRunner
public class GUIWebRunner
- extends Object
Method Summary |
void |
addNewRoute(edu.cmu.emulator.appVis.info.RouteInfo routeInfo)
|
void |
changeFadingModel(int pathKey,
String fadingModelDefName)
|
private edu.cmu.emulator.appVis.info.AntennaInfo |
getAntennaInfo(Antenna a,
int index)
|
edu.cmu.emulator.appVis.info.ChannelInfo |
getChannelInfo(int srcAntennaKey,
int destAntennaKey)
|
private PathBasedChannelModel |
getChannelModel(Antenna srcAntenna,
Antenna destAntenna)
|
int |
getCurTimeMillis()
|
String |
getFadingModel(int pathKey)
|
edu.cmu.emulator.appVis.info.InitInfo |
getInitInfo()
|
edu.cmu.emulator.appVis.info.NodeInfo[] |
getNodeInfo()
|
private edu.cmu.emulator.appVis.info.NodeInfoInit |
getNodeInfoInit(EmuNode node)
|
private char[] |
getPassword()
|
private edu.cmu.emulator.appVis.info.PathInfo |
getPathInfo(int pathKey)
|
edu.cmu.emulator.appVis.info.PathInfo[] |
getPathInfo(int[] pathKeys)
|
private edu.cmu.emulator.appVis.info.PathInfoInit |
getPathInfoInit(Path path)
|
private edu.cmu.emulator.appVis.info.RouteInfo[] |
getRouteInfo()
|
void |
haltNode(int nodeKey)
|
boolean |
login(String loginName,
char[] password)
|
void |
moveNodeOverTime(int nodeKey,
double[] pos,
double timeSecs)
|
void |
moveNodeWithSpeed(int nodeKey,
double[] pos,
double speedMPS)
|
private int |
registerAntenna(Antenna antenna)
|
private int |
registerNode(EmuNode node)
|
private int |
registerPath(Path path)
|
private int |
registerRoute(String routeName)
|
void |
rerouteNode(int nodeKey,
int routeKey)
|
void |
rerouteNode(int nodeKey,
edu.cmu.emulator.appVis.info.RouteInfo routeInfo)
|
boolean |
verifyPassword(char[] password)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
world
protected EmuWorld world
sigEnv
protected SignalEnvironment sigEnv
guiSettings
protected GUISettings guiSettings
userName
protected String userName
paths
ArrayList<Path> paths
antennas
ArrayList<Antenna> antennas
nodes
ArrayList<EmuNode> nodes
routes
ArrayList<String> routes
GUIWebRunner
public GUIWebRunner(Emulator emulator,
String userName)
login
public boolean login(String loginName,
char[] password)
verifyPassword
public boolean verifyPassword(char[] password)
getInitInfo
public edu.cmu.emulator.appVis.info.InitInfo getInitInfo()
getNodeInfoInit
private edu.cmu.emulator.appVis.info.NodeInfoInit getNodeInfoInit(EmuNode node)
getAntennaInfo
private edu.cmu.emulator.appVis.info.AntennaInfo getAntennaInfo(Antenna a,
int index)
moveNodeOverTime
public void moveNodeOverTime(int nodeKey,
double[] pos,
double timeSecs)
moveNodeWithSpeed
public void moveNodeWithSpeed(int nodeKey,
double[] pos,
double speedMPS)
haltNode
public void haltNode(int nodeKey)
rerouteNode
public void rerouteNode(int nodeKey,
int routeKey)
rerouteNode
public void rerouteNode(int nodeKey,
edu.cmu.emulator.appVis.info.RouteInfo routeInfo)
addNewRoute
public void addNewRoute(edu.cmu.emulator.appVis.info.RouteInfo routeInfo)
getNodeInfo
public edu.cmu.emulator.appVis.info.NodeInfo[] getNodeInfo()
getChannelInfo
public edu.cmu.emulator.appVis.info.ChannelInfo getChannelInfo(int srcAntennaKey,
int destAntennaKey)
getPathInfo
public edu.cmu.emulator.appVis.info.PathInfo[] getPathInfo(int[] pathKeys)
getPathInfo
private edu.cmu.emulator.appVis.info.PathInfo getPathInfo(int pathKey)
changeFadingModel
public void changeFadingModel(int pathKey,
String fadingModelDefName)
getFadingModel
public String getFadingModel(int pathKey)
getCurTimeMillis
public int getCurTimeMillis()
getRouteInfo
private edu.cmu.emulator.appVis.info.RouteInfo[] getRouteInfo()
getChannelModel
private PathBasedChannelModel getChannelModel(Antenna srcAntenna,
Antenna destAntenna)
getPathInfoInit
private edu.cmu.emulator.appVis.info.PathInfoInit getPathInfoInit(Path path)
registerPath
private int registerPath(Path path)
registerAntenna
private int registerAntenna(Antenna antenna)
registerNode
private int registerNode(EmuNode node)
registerRoute
private int registerRoute(String routeName)
getPassword
private char[] getPassword()
Copyright © 2013. All Rights Reserved.