Examples of ResponseMessage


Examples of org.jdesktop.wonderland.common.messages.ResponseMessage

   
    public CellTransform getCellTransform(CellID cellID) {
        Message request = new CellTransformRequestMessage(cellID);

        try {
            ResponseMessage rm = sendAndWait(request);
            if (rm instanceof CellTransformResponseMessage) {
                return ((CellTransformResponseMessage) rm).getTransform();
            } else if (rm instanceof ErrorMessage) {
                logger.log(Level.WARNING, "Error getting transform of " +
                        cellID + ": " + ((ErrorMessage) rm).getErrorMessage());
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ResponseMessage

        @Override
        public void messageReceived(WonderlandClientSender sender,
                                    WonderlandClientID clientID,
                                    CellMessage message)
        {
            ResponseMessage response;

            logger.fine("[SharedStateComponentMO]: Received message: " +
                        message.getClass().getSimpleName());

            if (message instanceof MapRequestMessage) {
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ResponseMessage

    {
        Set<Action> out = new LinkedHashSet<Action>();

        // request the permissions from the server
        PermissionsRequestMessage prm = new PermissionsRequestMessage(cellID);
        ResponseMessage rm = channel.sendAndWait(new PermissionsRequestMessage());
        if (rm instanceof PermissionsResponseMessage) {
            for (ActionDTO a : ((PermissionsResponseMessage) rm).getGranted()) {
                out.add(a.getAction());
            }
        }
View Full Code Here

Examples of org.jdesktop.wonderland.common.messages.ResponseMessage

        WonderlandSession session = manager.getPrimarySession();
        CellEditChannelConnection connection = (CellEditChannelConnection)
                session.getConnection(CellEditConnectionType.CLIENT_TYPE);
        CellCreateMessage msg = new CellCreateMessage(parentCellID, state);
//        connection.send(msg);
        ResponseMessage response = null;
        try {
            response = connection.sendAndWait(msg);
        } catch (InterruptedException ex) {
            Logger.getLogger(CellUtils.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

Examples of org.semanticweb.owlapi.owllink.builtin.response.ResponseMessage

        IsEntailed[] queriesExpected = new IsEntailed[axioms.size()];
        int i = 0;
        for (OWLAxiom axiom : axioms) {
            queriesExpected[i++] = new IsEntailed(referenceReasoner.getDefaultKB(), axiom);
        }
    ResponseMessage expected = referenceReasoner.answer(queriesExpected);
   
        IsEntailed[] queriesActual = new IsEntailed[axioms.size()];
        i = 0;
        for (OWLAxiom axiom : axioms) {
            queriesActual[i++] = new IsEntailed(referenceReasoner.getDefaultKB(), axiom);
        }
    ResponseMessage actual = referenceReasoner.answer(queriesActual);
    assertEquals( expected, actual );
  }
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.