Package resources.digesters

Examples of resources.digesters.Factory


 
  public static void load(String rootDir) throws SimulationException
  {
    try
    {
      Factory factory = new FactoryrootDir + File.separator + "simulation.xml",
                      rootDir + File.separator + "simulation-rules.xml");
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar la simulaci�n." );
 
      simulation = (Simulation)factory.digest();     
     
      if (simulation == null)
        throw new SimulationException( "No pudo cargarse la simulaci�n." );
    }
    catch (IOException e)
View Full Code Here


 
  public void digestRobots(String xmlFile, String xmlRulesFile) throws SimulationException
  {
    try
    {
      Factory factory = new Factory(xmlFile, xmlRulesFile);
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar los robots." );
 
      Robot robot = (Robot)factory.digest();
      if (robot == null)
        throw new SimulationException( "No pudo cargarse el robot." );
     
      simulation.addRobot(robot);
    }
View Full Code Here

 
  public void digestGPS(String xmlFile,String xmlRulesFile) throws SimulationException
  {
    try
    {
      Factory factory = new Factory(xmlFile, xmlRulesFile);
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar el GPS." );
 
      GPS gps = (GPS)factory.digest();
      if (gps == null)
        throw new SimulationException( "No pudo cargarse el GPS." );
     
      simulation.setGps(gps);
    }
View Full Code Here

 
  public static void load(String rootDir) throws SimulationException
  {
    try
    {
      Factory factory = new FactoryrootDir + File.separator + "simulation.xml",
                      rootDir + File.separator + "simulation-rules.xml");
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar la simulaci�n." );
 
      simulation = (Simulation)factory.digest();
      if (simulation == null)
        throw new SimulationException( "No pudo cargarse la simulaci�n." );
    }
    catch (IOException e)
    {
View Full Code Here

 
  public void digestRobots(String xmlFile, String xmlRulesFile) throws SimulationException
  {
    try
    {
      Factory factory = new Factory(xmlFile, xmlRulesFile);
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar los robots." );
 
      Robot robot = (Robot)factory.digest();
      if (robot == null)
        throw new SimulationException( "No pudo cargarse el robot." );
     
      simulation.addRobot(robot);
    }
View Full Code Here

 
  public void digestGPS(String xmlFile,String xmlRulesFile) throws SimulationException
  {
    try
    {
      Factory factory = new Factory(xmlFile, xmlRulesFile);
      if ( factory == null )
        throw new SimulationException"No pudo crearse la factor�a para " +
                        "levantar el GPS." );
 
      GPS gps = (GPS)factory.digest();
      if (gps == null)
        throw new SimulationException( "No pudo cargarse el GPS." );
     
      simulation.setGps(gps);
    }
View Full Code Here

TOP

Related Classes of resources.digesters.Factory

Copyright © 2018 www.massapicom. 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.