Examples of Message


Examples of shared.Message

    } else {
          if(target==null || target.equals(Connection.CONSOLE_ROOM)){
            return;
          }
          message = Message.quicklinkToLink(message);
          RoomManager.enQueue(new Message(this.getConnection(), message, this.getUserBot(), getChannel(target), Message.MSG))
      super.sendMessage(target, message);
    }
  }
View Full Code Here

Examples of simpleserver.message.Message

        write(in.readInt());

        break;
      case 0x03: // Chat Message
        String message = readUTF16();
        MessagePacket messagePacket = new Message().decodeMessage(message);

        if (messagePacket == null) {
          // we are raw text, handle as such

          if (isServerTunnel && server.config.properties.getBoolean("useMsgFormats")) {
View Full Code Here

Examples of soc.qase.com.message.Message

      int dataIndex = 8;

      while(dataIndex != incomingData.length)
      {
        ServerPacket sPacket = new ServerPacket(incomingData, dataIndex);
        Message msg = sPacket.getMessage();

        if(msg instanceof ServerStuffText)
        {
          String text = Utils.stringValue(incomingData, dataIndex + 1, Utils.stringLength(incomingData, dataIndex + 1));
View Full Code Here

Examples of system.Message

   *            Outgoing edge on which this message must be sent
   * @param msgValue
   *            Value of the message
   */
  public void sendMessage(Edge e, double msgValue) {
    Message aMsg = new Message(e.getSourceVertexID(), e.getDestVertexID(),
        msgValue, this.getSuperStep());
    this.gPartition.send(aMsg);
  }
View Full Code Here

Examples of test.common.Message

    public Message sendRequest(String operation, String[] body) throws IOException {
        return sendRequest(operation, body, DEFAULT_TIMEOUT);
    }
   
    public Message sendRequest(String operation, String[] body, int timeout) throws IOException {
        Message request = new Message(operation, body);
        sendMessage(request);
        Message reply = receiveMessage(request.getId(), timeout);
       
        if (VoidMessage.OPERATION.equals(reply.getType())) {
            return null;
        } else if (ErrorMessage.OPERATION.equals(reply.getType())) {
            StringBuffer buf = new StringBuffer();
            for (int i = 0; i < reply.getBody().length; i++) {
                buf.append(reply.getBody()[i]);
            }
            throw new RuntimeException(buf.toString());
        }
       
        return reply;
View Full Code Here

Examples of trams.data.Message

     */
    public void drawVehicles ( boolean isRedraw ) {
        //Now check if it is past midnight! If it is dispose, and create Allocation Screen.
        if ( isPastMidnight(theSimulator.getCurrentSimTime(), theSimulator.getPreviousSimTime()) && !doneAllocations ) {
            //Now add a message to summarise days events!!!
          Message message = (Message) theInterface.getContext().getBean("CouncilMessage");
          message.setSubject("Passenger Satisfaction for " + theSimulator.getPreviousDisplaySimDay());
          message.setText("Congratulations you have successfully completed transport operations for " + theInterface.getScenario().getScenarioName() + " on " + theSimulator.getPreviousDisplaySimDay() + " with a passenger satisfaction of " + theSimulator.getScenario().getPassengerSatisfaction() + "%.\n\nNow you need to allocate vehicles to routes for " + theSimulator.getCurrentDisplaySimDay() + " and keep the passenger satisfaction up! Click on the Management tab and then choose Allocations. Good luck!");
            message.setSender("Council");
            message.setFolder("Inbox");
            message.setDate(theSimulator.getCurrentDisplaySimTime());
            //Refresh messages.
            theFoldersBox.getSelectedItem().toString();
            theDateBox.getSelectedItem().toString();
            theMessageTypeBox.getSelectedItem().toString();
            theMessages = theInterface.getMessages(theFoldersBox.getSelectedItem().toString(),theDateBox.getSelectedItem().toString(),theMessageTypeBox.getSelectedItem().toString());
View Full Code Here

Examples of ucar.nc2.iosp.bufr.Message

    MessageScanner scan = new MessageScanner(raf);
    int count = 0;
    int bad = 0;
    while (scan.hasNext()) {
      Message m = scan.next();
      if (m == null) continue;
      //if (count == 0) new BufrDump2().dump(out, m);

      if (!m.isTablesComplete()) {
        out.format("**INCOMPLETE%n");
        bad++;
        continue;
      }

      int nbitsCounted = m.getTotalBits();
      if (!(Math.abs(m.getCountedDataBytes()- m.dataSection.getDataLength()) <= 1)) {
        out.format("**BitCount Fails expect=%d != dataLength=%d%n", m.getCountedDataBytes(), m.dataSection.getDataLength());
        bad++;
        continue;
      }

      byte[] mbytes = scan.getMessageBytesFromLast(m);
View Full Code Here

Examples of uk.ac.cam.cl.fjava.messages.Message

    }

    @Override
    public void run() {
        while (true) {
            Message mesOut = cHandler.clientMessages.take();
            try {
                objectOS.writeObject(mesOut);
                objectOS.flush();
            }
            catch (IOException e) {
View Full Code Here

Examples of uk.org.microbase.notification.db.data.Message

      throws DBException
  {
    long expires = Long.MAX_VALUE;
    long now = System.currentTimeMillis();

    Message message = new Message();
    message.setContent(content);
    message.setBinaryContent(binaryContent);
    message.setExpiresTimestamp(expires);
    message.setGuid(UidGenerator.generateUid());
    message.setPublishedTimestamp(now);
    message.setPublisherGuid(publisherGuid);
    message.setTopicGuid(topicGuid);
   

    lock.acquireLock();
    try
    {
View Full Code Here

Examples of us.aaronweiss.juicebot.Message

                    InternalUtilities.println(pong);
                client.send(pong);
            } else if (client.isSimpleMessageReceiver()) {
                client.receive(command, ctx.channel());
            } else {
                client.receive(new Message(command.split(" "), client, ctx.channel()));
            }
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.