public interface HubNetInterface
Method Summary | |
---|---|
boolean |
addNarrowcastPlot(String plotName)
|
void |
broadcast(Object data)
|
void |
broadcast(String variableName,
Object data)
Send a message to all clients |
void |
broadcastClearText()
|
void |
broadcastUserMessage(String text)
|
void |
broadcastView()
|
void |
clearOverride(String client,
Class<? extends Agent> agentClass,
String varName,
List<Long> overrides)
|
void |
clearOverrideLists(String client)
|
void |
clearPlot(String clientId)
|
void |
clearText(List<String> nodes)
|
Object |
clientEditor()
|
void |
closeClientEditor()
|
boolean |
connectionsExist()
|
void |
disconnect()
|
boolean |
enterMessage()
|
boolean |
exitMessage()
|
void |
fetchMessage()
|
int |
getInQueueSize()
|
int |
getInterfaceHeight()
|
int |
getInterfaceWidth()
|
Object |
getMessage()
|
String |
getMessageSource()
|
String |
getMessageTag()
|
double |
getOutQueueSize()
|
void |
importClientInterface(String path,
boolean client)
|
void |
incrementalUpdateFromEventThread()
|
void |
load(String[] lines,
String version)
|
boolean |
messageWaiting()
|
void |
newClient(boolean isRobo,
int waitTime)
|
void |
openClientEditor()
|
void |
plot(String clientId,
double y)
|
void |
plot(String clientId,
double x,
double y)
|
void |
plotPenDown(String clientId,
boolean penDown)
|
void |
reset()
|
void |
save(StringBuilder buf)
|
void |
send(List<String> nodes,
String tag,
Object message)
Send a message to each node (client) in the list for the given tag |
boolean |
send(String node,
String tag,
Object message)
Send message to a single client for the given tag |
void |
sendAgentPerspective(String client,
int perspective,
Class<? extends Agent> agentType,
long id,
double radius,
boolean serverMode)
|
void |
sendClear()
|
void |
sendLine(double x0,
double y0,
double x1,
double y1,
Object color,
double size,
String mode)
|
void |
sendOverrideList(String client,
Class<? extends Agent> agentClass,
String varName,
Map<Long,Object> overrides)
|
void |
sendStamp(Agent agent,
boolean erase)
|
void |
sendText(List<String> nodes,
String text)
|
void |
sendUserMessage(List<String> nodes,
String text)
|
void |
setClientInterface(String interfaceType,
LogoList interfaceInfo)
|
void |
setHistogramNumBars(String clientId,
int num)
|
void |
setPlotPenInterval(String clientId,
double interval)
|
void |
setPlotPenMode(String clientId,
int plotPenMode)
|
void |
setTitle(String title,
String directory,
ModelType type)
|
void |
showControlCenter()
|
Methods inherited from interface org.nlogo.api.ViewInterface |
---|
applyNewFontSize, framesSkipped, isDead, mouseDown, mouseInside, mouseXCor, mouseYCor, paintImmediately, repaint, resetMouseCors, shapeChanged, viewIsVisible |
Method Detail |
---|
boolean messageWaiting() throws LogoException
LogoException
boolean enterMessage() throws LogoException
LogoException
boolean exitMessage() throws LogoException
LogoException
void fetchMessage() throws LogoException
LogoException
Object getMessage() throws LogoException
LogoException
String getMessageSource() throws LogoException
LogoException
String getMessageTag() throws LogoException
LogoException
void broadcast(String variableName, Object data) throws LogoException
LogoException
void broadcast(Object data) throws LogoException
LogoException
void sendText(List<String> nodes, String text)
void clearText(List<String> nodes)
void broadcastClearText() throws LogoException
LogoException
void sendUserMessage(List<String> nodes, String text)
void broadcastUserMessage(String text) throws LogoException
LogoException
void send(List<String> nodes, String tag, Object message) throws LogoException
LogoException
boolean send(String node, String tag, Object message) throws LogoException
LogoException
void disconnect()
boolean connectionsExist()
void reset() throws LogoException
LogoException
void setClientInterface(String interfaceType, LogoList interfaceInfo) throws LogoException
LogoException
void newClient(boolean isRobo, int waitTime)
void sendOverrideList(String client, Class<? extends Agent> agentClass, String varName, Map<Long,Object> overrides) throws LogoException
LogoException
void clearOverride(String client, Class<? extends Agent> agentClass, String varName, List<Long> overrides) throws LogoException
LogoException
void clearOverrideLists(String client)
void sendAgentPerspective(String client, int perspective, Class<? extends Agent> agentType, long id, double radius, boolean serverMode)
void incrementalUpdateFromEventThread()
incrementalUpdateFromEventThread
in interface ViewInterface
void broadcastView() throws LogoException
LogoException
void sendLine(double x0, double y0, double x1, double y1, Object color, double size, String mode)
void sendStamp(Agent agent, boolean erase)
void sendClear()
void showControlCenter()
double getOutQueueSize() throws LogoException
LogoException
int getInQueueSize() throws LogoException
LogoException
void save(StringBuilder buf)
void closeClientEditor()
void openClientEditor()
Object clientEditor()
void load(String[] lines, String version)
void importClientInterface(String path, boolean client) throws IOException
IOException
void setTitle(String title, String directory, ModelType type)
int getInterfaceWidth()
int getInterfaceHeight()
boolean addNarrowcastPlot(String plotName)
void plot(String clientId, double y)
void plot(String clientId, double x, double y)
void clearPlot(String clientId)
void plotPenDown(String clientId, boolean penDown)
void setPlotPenMode(String clientId, int plotPenMode)
void setHistogramNumBars(String clientId, int num)
void setPlotPenInterval(String clientId, double interval)