Examples of Controller


Examples of net.nakou.indie.jsige.entity.Controller

    }
   
    public void fillFromTile(){
  if(tileMap != null){
      BlockMap ent;
      Controller c;
      Element e;
      RigidBody r;
      for (int xAxis=0;xAxis<tileMap.getWidth(); xAxis++)
      {
    for (int yAxis=0;yAxis<tileMap.getHeight(); yAxis++)
    {
        int tileID = tileMap.getTileId(xAxis, yAxis, 0);
        if(CONF.debugLevel >= 3)
      System.out.println(tileMap.getTileProperty(tileID, "Solid", "0"));
        if(tileMap.getTileProperty(tileID, "Solid", "0").equals("1")){
      try {
          ent = new BlockMap();
          e = new Element(ent, tileMap.getVisibleTile(xAxis, yAxis));
          ent.setElement(e);
          c = new Controller(ent, xAxis*32, yAxis*32);
          ent.setController(c);
          r = new RigidBody(ent,1, true, true);
          ent.setRigidbody(r);
                            ent.setEntityName("BlockN°"+tileID);
      } catch (SlickException ex) {
View Full Code Here

Examples of net.sf.saxon.Controller

    public void checkPermittedContents(SchemaType parentType, StaticContext env, boolean whole) throws XPathException {
        action.checkPermittedContents(parentType, env, false);
    }

    public TailCall processLeavingTail(XPathContext context) throws XPathException {
        Controller controller = context.getController();

        GroupIterator groupIterator = getGroupIterator(context);

        XPathContextMajor c2 = context.newContext();
        c2.setOrigin(this);
        c2.setCurrentIterator(groupIterator);
        c2.setCurrentGroupIterator(groupIterator);
        c2.setCurrentTemplateRule(null);

        if (controller.isTracing()) {
            TraceListener listener = controller.getTraceListener();
            while (true) {
                Item item = groupIterator.next();
                if (item == null) {
                    break;
                }
View Full Code Here

Examples of noop.graph.Controller

    this.workspace = workspace;
    this.repository = repository;
  }

  public int run() throws FileNotFoundException {
    Controller controller = new Controller(workspace, new VertexCreatingVisitor());

    for (String libraryPath : options.getLibraryPaths()) {
      CommandLineLibraryNameParser parser = new CommandLineLibraryNameParser(libraryPath).invoke();
      Project project = parser.getProject();
      Library library = repository.load(project, parser.getLibraryName());
      project.addLibrary(library);
      controller.addProject(new NewProjectOperation(project));
    }

    Library mainLib = workspace.lookupLibrary(UUID.fromString(options.getMainLib()));
    if (mainLib == null) {
      throw new IllegalArgumentException("No library found with id " + options.getMainLib());
View Full Code Here

Examples of org.apache.axis.tool.service.control.Controller

        }
    }
    private void processFinish(){
        if (currentWizardPane.validateValues()){
            try {
                new Controller().process(wizardBean);
                showSuccessMessage(" jar file creation successful! ");
            } catch (ProcessException e) {
                showErrorMessage(e.getMessage());
            } catch (Exception e) {
                showErrorMessage("Unknown Error! " +e.getMessage() );
View Full Code Here

Examples of org.apache.axis2.tool.service.control.Controller

    }

    private void processFinish() {
        if (currentWizardPane.validateValues()) {
            try {
                new Controller().process(wizardBean);
                showSuccessMessage(" jar file creation successful! ");
            } catch (ProcessException e) {
                showErrorMessage(e.getMessage());
            } catch (Exception e) {
                showErrorMessage("Unknown Error! " + e.getMessage());
View Full Code Here

Examples of org.apache.harmony.jretools.policytool.control.Controller

        final URL apahceIconURL = MainFrame.class.getResource( "apache.gif" );
        if ( apahceIconURL != null )
            setIconImage( new ImageIcon( apahceIconURL ).getImage() );

        final EditorPanel[] editorPanels = new EditorPanel[] { new GraphicalEditorPanel( this ), new DirectTextEditorPanel( this ) };
        final Controller    controller   = new Controller( this, editorPanels, policyFileName );

        buildGUI( controller );

        setLocation( Consts.MAIN_FRAME_START_POS_X, Consts.MAIN_FRAME_START_POS_X );
        setSize( Consts.MAIN_FRAME_WIDTH, Consts.MAIN_FRAME_HEIGHT );
        setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
        addWindowListener( new WindowAdapter() {
            public void windowClosing( final WindowEvent we ) {
                controller.exit();
            }
        } );
    }
View Full Code Here

Examples of org.apache.harmony.tools.policytool.control.Controller

     */
    public MainFrame( final String policyFileName ) {
        super( Consts.APPLICATION_NAME );

        final EditorPanel[] editorPanels = new EditorPanel[] { new GraphicalEditorPanel( this ), new DirectTextEditorPanel( this ) };
        final Controller    controller   = new Controller( this, editorPanels, policyFileName );

        buildGUI( controller );

        setLocation( Consts.MAIN_FRAME_START_POS_X, Consts.MAIN_FRAME_START_POS_X );
        setSize( Consts.MAIN_FRAME_WIDTH, Consts.MAIN_FRAME_HEIGHT );
        setDefaultCloseOperation( DO_NOTHING_ON_CLOSE );
        addWindowListener( new WindowAdapter() {
            public void windowClosing( final WindowEvent we ) {
                controller.exit();
            }
        } );
    }
View Full Code Here

Examples of org.apache.helix.api.Controller

    // read the controllers
    Map<ControllerId, Controller> controllerMap = new HashMap<ControllerId, Controller>();
    ControllerId leaderId = null;
    if (leader != null) {
      leaderId = ControllerId.from(leader.getId());
      controllerMap.put(leaderId, new Controller(leaderId, leader, true));
    }

    // read the constraints
    Map<ConstraintType, ClusterConstraints> clusterConstraintMap =
        new HashMap<ConstraintType, ClusterConstraints>();
View Full Code Here

Examples of org.apache.jetspeed.om.profile.Controller

                assertTrue(controlParam.getValue().equals("1"));
                controlParam = (Parameter)controlParams.next();
                assertTrue(controlParam.getName().equals("b"));
                assertTrue(controlParam.getValue().equals("2"));

                Controller controller = rootset.getController();
                assertNotNull(controller);
                Iterator controllerParams = controller.getParameterIterator();
                assertNotNull(controllerParams);
                Parameter controllerParam = (Parameter)controllerParams.next();

                assertTrue(controller.getName().equals("TabController"));
                assertTrue(controllerParam.getName().equals("a"));
                assertTrue(controllerParam.getValue().equals("1"));
                controllerParam = (Parameter)controllerParams.next();
                assertTrue(controllerParam.getName().equals("b"));
                assertTrue(controllerParam.getValue().equals("2"));

                Iterator entries = rootset.getEntriesIterator();
                assertNotNull(entries);
                Entry entry = (Entry)entries.next();
                assertTrue(entry.getParent().equals("LoggedInWelcome"));   
                assertTrue(entry.getId().equals("03"));   

                Layout elayout = entry.getLayout();
                assertNotNull(elayout);
                Iterator elayoutParams = elayout.getParameterIterator();
                assertNotNull(elayoutParams);
                Parameter elayoutParam = (Parameter)elayoutParams.next();
                assertTrue(elayoutParam.getName().equals("column"));
                elayoutParam = (Parameter)elayoutParams.next();
                assertTrue(elayoutParam.getName().equals("row"));

                Iterator pv = rootset.getPortletsIterator();

                Portlets p = (Portlets)pv.next();
                assertNotNull(p);

                Controller pc = p.getController();
                assertNotNull(pc);
                assertTrue(pc.getName().equals("TwoColumns"));

                Iterator pe = p.getEntriesIterator();
                assertNotNull(pe);
                Entry e1 = (Entry)pe.next();
                assertTrue(e1.getParent().equals("HelloWhatever"));   
View Full Code Here

Examples of org.apache.jmeter.control.Controller

        List<Controller> controllersToReinit = pathToRootTraverser.getControllersToRoot();

        // Trigger end of loop condition on all parent controllers of current sampler
        for (Iterator<Controller> iterator = controllersToReinit
                .iterator(); iterator.hasNext();) {
            Controller parentController =  iterator.next();
            if(parentController instanceof AbstractThreadGroup) {
                AbstractThreadGroup tg = (AbstractThreadGroup) parentController;
                tg.startNextLoop();
            } else {
                parentController.triggerEndOfLoop();
            }
        }
        if(transactionSampler!=null) {
            process_sampler(transactionSampler, null, threadContext);
        }
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.