Examples of Controller


Examples of Controller.Controller

* @author home
* Classe Main centrale
*/
public class Main {
  static public void main(String args[]) {
    Controller controller = new Controller(true);
    Game game = Game.getInstance();
    GUI gui = GUI.getInstance();

    /* Boucle de jeu */
    while (!game.isFinished()) {
View Full Code Here

Examples of agentj.thread.Controller

    public static void sleep(long millis) throws InterruptedException {
        logger.trace("Entering");


        Controller cont = AgentJVirtualMachine.getCurrentNS2NodeController();

        ProtolibTimer timer = new ProtolibTimer(cont, (double)millis /1000.0, 0);

        // set up the controller to be the socket listener
View Full Code Here

Examples of bm.core.mvc.Controller

     * @param id controller id
     * @return controller
     */
    public static synchronized Controller getController( final String id )
    {
        Controller controller = (Controller) controllers.get( id );
        if( controller == null )
        {
            try
            {
                final byte[] data = (byte[]) index.find( "controller." + id );
View Full Code Here

Examples of bpntojava.controller.Controller

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Controller controller = new Controller();
    }
View Full Code Here

Examples of by.fly.ui.controller.Controller

        try (InputStream fxmlStream = SpringFXMLLoader.class.getResourceAsStream(url)) {
            FXMLLoader loader = new FXMLLoader();
            loader.setControllerFactory(aClass -> APPLICATION_CONTEXT.getBean(aClass));

            Node view = loader.load(fxmlStream);
            Controller controller = loader.getController();
            controller.setView(view);

            return controller;
        } catch (IOException e) {
            LOGGER.error("Can't load resource", e);
            throw new RuntimeException(e);
View Full Code Here

Examples of ca.teamdave.caruso.Controller

    public static void main(String[] args) throws CarusoException {

        Logger logger = new LiveGraphLogger("/home/leigh/.myDat", "/home/leigh/LiveGraph.1.14.Application.bin/LiveGraph.1.14.Application.bin.jar");
        Machine machine = new Machine(logger);

        Controller controller = new LinearRobotController();
        AbstractRobot robot = new LinearRobotSimulated();

        Caruso caruso = new Caruso(controller, machine, robot);

        caruso.robotInit(createConfig());
View Full Code Here

Examples of client.net.sf.saxon.ce.Controller

                    throw de;
                }
            }
        }

        Controller controller = c.getController();

        // Resolve relative URI
        DocumentURI documentKey = computeDocumentKey(href, baseURI);

        // see if the document is already loaded

        DocumentInfo doc = config.getGlobalDocumentPool().find(documentKey);
        if (doc != null) {
            return doc;
        }

        DocumentPool pool = controller.getDocumentPool();
        doc = pool.find(documentKey);
        if (doc != null) {
            return getFragment(doc, fragmentId, c);
        }

        // check that the document was not written by this transformation

        if (!controller.checkUniqueOutputDestination(documentKey)) {
            pool.markUnavailable(documentKey);
            XPathException err = new XPathException(
                    "Cannot read a document that was written during the same transformation: " + documentKey);
            err.setXPathContext(c);
            err.setErrorCode("XTRE1500");
            throw err;
        }

        try {

            if (pool.isMarkedUnavailable(documentKey)) {
                XPathException err = new XPathException(
                        "Document has been marked not available: " + documentKey);
                err.setXPathContext(c);
                err.setErrorCode("FODC0002");
                throw err;
            }

            DocumentInfo newdoc = config.buildDocument(documentKey.toString());
            controller.registerDocument(newdoc, documentKey);
            controller.addUnavailableOutputDestination(documentKey);
            return getFragment(newdoc, fragmentId, c);

        } catch (XPathException err) {
            pool.markUnavailable(documentKey);
            err.maybeSetLocation(locator);
            String code = (err.getCause() instanceof URI.URISyntaxException) ? "FODC0005" : "FODC0002";
            err.maybeSetErrorCode(code);
            controller.recoverableError(err);
            return null;
        }
    }
View Full Code Here

Examples of client.ws.milanas.controller.Controller

     */
    public static void main(String[] args)
    {
        AmazonItemSearcher ais = new AmazonItemSearcher();
        AmazonCartWrapper cw = new AmazonCartWrapper();
        Controller controller = new Controller(ais, cw);
        MilanasWSClientGUI gui = new MilanasWSClientGUI(controller);
        gui.setVisible(true);
    }
View Full Code Here

Examples of com.acciente.induction.controller.Controller

                          HttpServletRequest             oRequest,
                          HttpServletResponse            oResponse,
                          Throwable                      oError )
      throws ControllerExecutorException
   {
      Controller  oController;

      try
      {
         oController = _oControllerPool.getController( oResolution.getClassName() );
      }
      catch ( ClassNotFoundException e )
      {
         throw new ControllerExecutorException( oResolution.getClassName(), oResolution.getMethodName(), "unable to load class definition", e );
      }
      catch ( ConstructorNotFoundException e )
      {
         throw new ControllerExecutorException( oResolution.getClassName(),
                                                oResolution.getMethodName(),
                                                "unable to find constructor", e );
      }
      catch ( InstantiationException e )
      {
         throw new ControllerExecutorException( oResolution.getClassName(),
                                                oResolution.getMethodName(),
                                                "instantiate error", e );
      }
      catch ( InvocationTargetException e )
      {
         throw new ControllerExecutorException( oResolution.getClassName(),
                                                oResolution.getMethodName(),
                                                "target exception", e );
      }
      catch ( IllegalAccessException e )
      {
         throw new ControllerExecutorException( oResolution.getClassName(),
                                                oResolution.getMethodName(),
                                                "access exception", e );
      }
      catch ( ParameterProviderException e )
      {
         throw new ControllerExecutorException( oResolution.getClassName(),
                                                oResolution.getMethodName(),
                                                "parameter exception", e );
      }

      // use performance enhanced reflection to determine the methods in the controller with the specified name
      Method oControllerMethod;
      try
      {
         oControllerMethod = ReflectUtils.getSingletonMethod( oController.getClass(),
                                                              oResolution.getMethodName(),
                                                              oResolution.isIgnoreMethodNameCase() );
      }
      catch ( MethodNotFoundException e )
      {
View Full Code Here

Examples of com.dbdeploy.Controller



    final StubSchemaManager schemaManager = new StubSchemaManager();
    ChangeScriptApplier applier = new TemplateBasedApplier(writer, syntaxName, "changelog", ";", DelimiterType.normal, null);
    Controller controller = new Controller(changeScriptRepository, schemaManager, applier, null);

    controller.processChangeScripts(Long.MAX_VALUE);

    assertEquals(readExpectedFileContents(getExpectedFilename(syntaxName)), writer.toString());
  }
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.