Examples of Actor


Examples of caltrop.interpreter.ast.Actor

     */
    public void attributeChanged(Attribute attribute)
            throws IllegalActionException {
        if (attribute == calCode) {
            String s = calCode.getExpression();
            Actor actor;

            try {
                actor = caltrop.interpreter.util.SourceReader.readActor(s);
            } catch (Throwable ex) {
                // FIXME: It would be nice if _stringToActor threw
View Full Code Here

Examples of co.paralleluniverse.actors.Actor

    private ActorRef<?> start(ChildEntry child) {
        final ActorRef old = child.actor;
        if (old != null && !LocalActor.isDone(old))
            throw new IllegalStateException("Actor " + child.actor + " cannot be restarted because it is not dead");

        final Actor actor = child.spec.builder.build();
        if (actor.getName() == null && child.spec.id != null)
            actor.setName(child.spec.id);

        log().info("{} starting child {}", this, actor);

        if (old != null && actor.getMonitor() == null && isLocal(old) && LocalActor.getMonitor(old) != null)
            actor.setMonitor(LocalActor.getMonitor(old));
        if (actor.getMonitor() != null)
            actor.getMonitor().addRestart();

        final Strand strand;
        if (actor.getStrand() != null)
            strand = actor.getStrand();
        else
            strand = createStrandForActor(child.actor != null && isLocal(child.actor) ? LocalActor.getStrand(child.actor) : null, actor);

        try {
            strand.start();
        } catch (IllegalThreadStateException e) {
            log().info("Child {} has already been started.", actor);
        }

        return start(child, actor.ref());
    }
View Full Code Here

Examples of com.badlogic.gdx.scenes.scene2d.Actor

    if (children.isEmpty()) {
      add(new Label(text, style));
      return;
    }
    for (int i = 0; i < children.size(); i++) {
      Actor child = children.get(i);
      if (child instanceof Label) {
        ((Label)child).setText(text);
        return;
      }
    }
View Full Code Here

Examples of com.caucho.bam.Actor

                      ServletResponse response)
    throws IOException, ServletException
  {
    WebSocketServletRequest wsRequest = (WebSocketServletRequest) request;

    Actor actor;

    try {
      actor = (Actor) _actorClass.newInstance();
    } catch (Exception e) {
      throw new ServletException(e);
View Full Code Here

Examples of com.caucho.bam.actor.Actor

    _actor = actor;
   
    PassthroughBroker inboundBroker = new PassthroughBroker();
    PassthroughBroker outboundBroker = new PassthroughBroker();
   
    Actor inboundStream = actor.getActor();
    SimpleActorSender sender = new SimpleActorSender(inboundStream,
                                                     outboundBroker);
   
    _sender = sender;
   
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.activitystreams.model.Actor

    return getAsString(ASJsonPath.ShortTitle);
  }

  public Actor getActor() {
    if (actor == null) {
      actor = new Actor(dataHandler);
    }
    return actor;
  }
View Full Code Here

Examples of com.impetus.client.neo4j.imdb.Actor

     * .
     */
    @Test
    public void testGetNodeFromEntity()
    {
        Actor actor = new Actor();
        actor.setId(1);
        actor.setName("Keenu Reeves");

        Transaction tx = graphDb.beginTx();
        Node node = mapper.getNodeFromEntity(actor, 1, graphDb, KunderaMetadataManager.getEntityMetadata(kunderaMetadata, Actor.class),
                false);
        Assert.assertNotNull(node);
View Full Code Here

Examples of com.impetus.kundera.tests.crossdatastore.imdb.entities.Actor

    @Override
    protected void find()
    {

        Actor actor1 = (Actor) dao.find(Actor.class, 1);
        Actor actor2 = (Actor) dao.find(Actor.class, 2);

        assertActors(actor1, actor2);
    }
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Actor

     *
     * @return an actor
     * @throws InputParseException thrown if no {@link Actor} is set
     */
    public Actor requireActor() throws InputParseException {
        Actor actor = getActor();
        if (actor == null) {
            throw new InputParseException("No actor is known");
        }
        return actor;
    }
View Full Code Here

Examples of com.sk89q.worldedit.extension.platform.Actor

            logMode = null;
        } else {
            logMode = loggingAnnotation.value();
        }

        Actor sender = context.getLocals().get(Actor.class);
        Player player;

        if (sender == null) {
            return;
        }

        if (sender instanceof Player) {
            player = (Player) sender;
        } else {
            return;
        }

        builder.append("WorldEdit: ").append(sender.getName());
        if (sender.isPlayer()) {
            builder.append(" (in \"").append(player.getWorld().getName()).append("\")");
        }

        builder.append(": ").append(context.getCommand());
       
        if (context.argsLength() > 0) {
            builder.append(" ").append(context.getJoinedStrings(0));
        }
       
        if (logMode != null && sender.isPlayer()) {
            Vector position = player.getPosition();
            LocalSession session = worldEdit.getSessionManager().get(player);
           
            switch (logMode) {
            case PLACEMENT:
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.