org.nlogo.nvm
Interface HubNetInterface

All Superinterfaces:
Configurable

public interface HubNetInterface
extends Configurable


Field Summary
static String NOT_LOGGED_IN
           
 
Method Summary
 boolean addNarrowcastPlot(String plotName)
           
 void broadcast(String variableName, Object data)
           
 void broadcastGW()
           
 void broadcastText(String text)
           
 Object clientEditor()
           
 void closeClientEditor()
           
 boolean connectionsExist()
           
 void disconnect()
           
 boolean enterMessage()
           
 boolean exitMessage()
           
 void fetchMessage()
           
 int getInQueueSize()
           
 Object getMessage()
           
 String getMessageSource()
           
 String getMessageTag()
           
 double getOutQueueSize()
           
 void hubNetClearPlot(String clientId)
           
 void hubNetPenDown(String clientId, boolean penDown)
           
 void hubNetPenMode(String clientId, int plotPenMode)
           
 void hubNetPlot(String clientId, double y)
           
 void hubNetPlot(String clientId, double x, double y)
           
 void hubNetSetHistogramNumBars(String clientId, int num)
           
 void hubNetSetInterval(String clientId, double interval)
           
 void importClientInterface(String path, boolean client)
           
 void load(String[] lines, String version)
           
 boolean messageWaiting()
           
 void newClient()
           
 void newClient(int waitTime)
           
 void openClientEditor()
           
 void reset()
           
 void save(StringBuffer buf)
           
 void send(List nodes, String tag, Object message)
          sends message to tag on each node in nodes. nodes should be list of string node ids.
 boolean send(String node, String tag, Object message)
          sends message to a specific node, specified by String ID.
 void sendClear()
           
 void sendGW(List nodes)
           
 void sendLine(double x0, double y0, double x1, double y1, Object color, double size, String mode)
           
 void sendStamp(Agent agent, boolean erase)
           
 void sendText(List nodes, String text)
           
 void setClientInterface(String interfaceType, LogoList interfaceInfo)
           
 void setTitle(String title, String directory, int type)
           
 void showControlCenter()
           
 void updateDisplay()
           
 boolean validTag(String tag)
           
 

Field Detail

NOT_LOGGED_IN

static final String NOT_LOGGED_IN
See Also:
Constant Field Values
Method Detail

messageWaiting

boolean messageWaiting()
                       throws LogoException
Throws:
LogoException

enterMessage

boolean enterMessage()
                     throws LogoException
Throws:
LogoException

exitMessage

boolean exitMessage()
                    throws LogoException
Throws:
LogoException

fetchMessage

void fetchMessage()
                  throws LogoException
Throws:
LogoException

getMessage

Object getMessage()
                  throws LogoException
Throws:
LogoException

getMessageSource

String getMessageSource()
                        throws LogoException
Throws:
LogoException

getMessageTag

String getMessageTag()
                     throws LogoException
Throws:
LogoException

broadcast

void broadcast(String variableName,
               Object data)
               throws LogoException
Throws:
LogoException

broadcastText

void broadcastText(String text)

sendText

void sendText(List nodes,
              String text)

send

void send(List nodes,
          String tag,
          Object message)
          throws LogoException
sends message to tag on each node in nodes. nodes should be list of string node ids.

Throws:
LogoException

send

boolean send(String node,
             String tag,
             Object message)
             throws LogoException
sends message to a specific node, specified by String ID.

Throws:
LogoException

validTag

boolean validTag(String tag)

disconnect

void disconnect()

connectionsExist

boolean connectionsExist()

reset

void reset()
           throws LogoException
Throws:
LogoException

setClientInterface

void setClientInterface(String interfaceType,
                        LogoList interfaceInfo)
                        throws LogoException
Throws:
LogoException

newClient

void newClient()

newClient

void newClient(int waitTime)

updateDisplay

void updateDisplay()

sendGW

void sendGW(List nodes)
            throws LogoException
Throws:
LogoException

broadcastGW

void broadcastGW()
                 throws LogoException
Throws:
LogoException

sendLine

void sendLine(double x0,
              double y0,
              double x1,
              double y1,
              Object color,
              double size,
              String mode)

sendStamp

void sendStamp(Agent agent,
               boolean erase)

sendClear

void sendClear()

showControlCenter

void showControlCenter()

getOutQueueSize

double getOutQueueSize()
                       throws LogoException
Throws:
LogoException

getInQueueSize

int getInQueueSize()
                   throws LogoException
Throws:
LogoException

save

void save(StringBuffer buf)

closeClientEditor

void closeClientEditor()

openClientEditor

void openClientEditor()

clientEditor

Object clientEditor()

load

void load(String[] lines,
          String version)

importClientInterface

void importClientInterface(String path,
                           boolean client)
                           throws IOException
Throws:
IOException

setTitle

void setTitle(String title,
              String directory,
              int type)

addNarrowcastPlot

boolean addNarrowcastPlot(String plotName)

hubNetPlot

void hubNetPlot(String clientId,
                double y)

hubNetPlot

void hubNetPlot(String clientId,
                double x,
                double y)

hubNetClearPlot

void hubNetClearPlot(String clientId)

hubNetPenDown

void hubNetPenDown(String clientId,
                   boolean penDown)

hubNetPenMode

void hubNetPenMode(String clientId,
                   int plotPenMode)

hubNetSetHistogramNumBars

void hubNetSetHistogramNumBars(String clientId,
                               int num)

hubNetSetInterval

void hubNetSetInterval(String clientId,
                       double interval)