Examples of Participant


Examples of net.sourceforge.torchlight.core.data.campaign.Participant

                return JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT);
            }
        }
        else if(element instanceof Participant)
        {
            Participant p = (Participant)element;

            if(IApplicationConstants.DUNGEON_MASTER_ROLE.equals(p.getRole()))
            {
                logger.debug("participant is DM");
                return JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);
            }
        }
View Full Code Here

Examples of net.sourceforge.torchlight.data.campaign.Participant

            }
            else if(parentElement instanceof Participant)
            {
                logger.debug("get campaign participant children");
               
                Participant p = (Participant)parentElement;
               
                Vector<Creature> pcs = p.getCampaign().getCharacters(p);
                logger.debug("characters belonging to Participant " + p.getName() + ": " + pcs.size());
               
                for(Creature c : pcs)
                {
                    logger.debug("register as listener for: " + c);
                    c.addListener(CampaignView.this);
View Full Code Here

Examples of net.sourceforge.torchlight.data.campaign.Participant

            }
            else if(element instanceof Participant)
            {
                logger.debug("participant");
               
                Participant p = (Participant)element;
                logger.trace("p = " + p.getName());
               
                if(p.getRole() == Participant.Role.DUNGEON_MASTER)
                {
                    logger.debug("participant is DM");
                    return false;
                }
               
                if(p.getCharacters().size() > 0)
                {
                    logger.debug("participant is player");
                    return true;
                }
            }
View Full Code Here

Examples of net.sourceforge.torchlight.data.campaign.Participant

                    return JFaceResources.getFontRegistry().getItalic(JFaceResources.DEFAULT_FONT);
                }
            }
            else if(element instanceof Participant)
            {
                Participant p = (Participant)element;
               
                if(p.getRole() == Participant.Role.DUNGEON_MASTER)
                {
                    logger.debug("participant is DM");
                    return JFaceResources.getFontRegistry().getBold(JFaceResources.DEFAULT_FONT);
                }
            }
View Full Code Here

Examples of org.apache.curator.framework.recipes.leader.Participant

      if (latch == null) {
        return null;
      }

      Participant participant = latch.getLeader();
      if (participant.isLeader()) {
        return participant.getId();
      }

      return null;
    }
    catch (Exception e) {
View Full Code Here

Examples of org.apache.helix.api.Participant

    Set<ParticipantId> participantSet = new HashSet<ParticipantId>(participantMap.keySet());
    Set<ParticipantId> disabledParticipantsForPartition =
        Sets.filter(participantSet, new Predicate<ParticipantId>() {
          @Override
          public boolean apply(ParticipantId participantId) {
            Participant participant = participantMap.get(participantId);
            return !participant.isEnabled()
                || participant.getDisabledPartitionIds().contains(partitionId);
          }
        });
    return disabledParticipantsForPartition;
  }
View Full Code Here

Examples of org.apache.helix.api.Participant

    // create the participant
    boolean created = createParticipant(participantId, accessor, MODIFIER, 1);
    Assert.assertTrue(created);

    // read the participant
    Participant participantSnapshot = accessor.readParticipant(participantId);
    Assert.assertEquals(participantSnapshot.getUserConfig().getIntField(MODIFIER, -1), 1);

    // create a participant with the same id
    boolean created2 = createParticipant(participantId, accessor, MODIFIER, 2);
    Assert.assertFalse(created2); // should fail since participant exists

    // remove a required property
    helixAccessor.removeProperty(helixAccessor.keyBuilder().messages(participantId.stringify()));

    // try again, should work this time
    created2 = createParticipant(participantId, accessor, MODIFIER, 2);
    Assert.assertTrue(created2);

    // read the cluster again
    participantSnapshot = accessor.readParticipant(participantId);
    Assert.assertEquals(participantSnapshot.getUserConfig().getIntField(MODIFIER, -1), 2);

    accessor.dropCluster();
  }
View Full Code Here

Examples of org.bnplusplus.model.bnpp.Participant

         
          Thing thing = ((IThingMappingModel) controller.getMappingModel()).getThing(iComponent);

          if (thing instanceof Participant)
          {
            Participant p = (Participant) thing;

            if (p != null)
            { 
              mapC = addNode(n, p, mapC);

              for (ParticipantClassification pc : p.getParticipantClassificationLnkVector())
              {
                //System.out.println("pc "+pc.getFirstName());
                mapC = addNode(n, pc, mapC);
              }           
            }
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.Participant

                    // TODO: count
            }
        }
        else if(element instanceof Participant) {
            logger.debug("element is a participant");
            Participant p = (Participant)element;

            switch(columnIndex) {
                case 0:
                    logger.debug("column 0");
                    return p.getName();

                case 1:
                    logger.debug("column 1");

                    // TODO
            }
        }
        else if(element instanceof Library) {
            logger.debug("element is a library");
            Library p = (Library)element;

            switch(columnIndex) {
                case 0:
                    logger.debug("column 0");
                    return p.getName();

                case 1:
                    logger.debug("column 1");

                    // TODO
View Full Code Here

Examples of org.criticalfailure.torchlight.core.domain.entity.Participant

     */
    public Participant createParticipant(boolean empty) {

        logger.info("Creating new participant.");

        Participant p = (Participant)appContext.getBean("participant");

        if(!empty) {
            p.setName(Messages.getString("model.factory.participant.name.default"));
            // p.setLabel(Messages.getString("model.factory.participant.label.default"));
            // p.setDescription(Messages.getString("model.factory.setting.description.default"));
        }

        logger.info("Created participant: " + p);
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.