Examples of Environment


Examples of CLIPSJNI.Environment

    frame.getContentPane().add(nextButtonPanel);
    frame.setMinimumSize(new Dimension(360, 240));
    frame.pack();
    frame.setVisible(true);

    clips = new Environment();
    clips.load("control.clp");
    clips.load("knowledgebase.clp");
    clips.reset();
    clips.run(1);
View Full Code Here

Examples of aima.core.agent.Environment

* @author Ruediger Lunde
*/
public class TrivialVacuumDemo {
  public static void main(String[] args) {
    // create environment with random state of cleaning.
    Environment env = new VacuumEnvironment();
    EnvironmentView view = new SimpleEnvironmentView();
    env.addEnvironmentView(view);
   
    Agent a = null;
    a = new ModelBasedReflexVacuumAgent();
    // a = new ReflexVacuumAgent();
    // a = new SimpleReflexVacuumAgent();
    // a = new TableDrivenVacuumAgent();
   
    env.addAgent(a);
    env.step(16);
    env.notifyViews("Performance=" + env.getPerformanceMeasure(a));
  }
View Full Code Here

Examples of br.com.caelum.vraptor.environment.Environment

    configureExtras();
  }

  protected URL getHibernateCfgLocation() {
    if (isEnvironmentAvailable()) {
      Environment env = container.instanceFor(Environment.class);
      return env.getResource(getHibernateCfgName());
    }

    return getClass().getResource(getHibernateCfgName());
  }
View Full Code Here

Examples of caltrop.interpreter.environment.Environment

        }
    }

    // Process actor import statements
    private Environment _extendEnvWithImports(Environment env, Import[] imports) {
        Environment newEnv = ImportUtil.handleImportList(env, importHandlers,
                imports);

        if (newEnv == null) {
            throw new RuntimeException("Failed to process import list.");
        }
View Full Code Here

Examples of cc.sketchchair.environments.Environment

  }

  public void hybernateCopy() {
    float border = 15;
    GLOBAL.uiTools.hybernateChairToFileAuto(null);
    Environment chair = new Environment(
        GLOBAL.LAST_SAVED_LOCATION + ".png", GLOBAL.applet);
    float minX = this.getSlicePlanesY().getMinXWorldSpace(
        this.currentWorldTransform);
    float minY = this.getSlicePlanesY().getMinYWorldSpace(
        this.currentWorldTransform);
View Full Code Here

Examples of ch.entities.javainstaller.ConfigReader.Environment

          System.out.println("- " + environment.getId() + " for " + environment.getName());
        }
        break;
      } else {
        String environmentId = args[0];
        Environment environment = ini.getEnvironmentById(environmentId);
        if (environment == null) {
          System.out.println("Unknown environment " + environmentId);
          System.out.flush();
        } else {
          System.out.println("Packaging deployable for " + environment.getName() + " ...");
         
          /**
           * Open output file
           */
          ZipOutputStream zipOut = new ZipOutputStream(new FileOutputStream(ini.getOutfile()));
         
          /**
           * Copying environment-agnostic contents to output
           */
          ZipInputStream contentsZip = new ZipInputStream(ClassLoader.getSystemResourceAsStream(configFileIdx + "-contents.zip"));
          copyZipEntries(zipOut, contentsZip);
          contentsZip.close();
         
          /**
           * Copying environment-aware contents to output
           */
          InputStream configZipInputStream = ClassLoader.getSystemResourceAsStream(configFileIdx + "-config-" + environment.getId() + ".zip");
          if (configZipInputStream != null) {
            ZipInputStream configZip = new ZipInputStream(configZipInputStream);
            copyZipEntries(zipOut, configZip);
            configZip.close();
          }
View Full Code Here

Examples of ch.entwine.weblounge.common.site.Environment

      NodeList valueNodes = XPathHelper.selectList(option, "ns:value", xpathProcessor);

      for (int j = 0; j < valueNodes.getLength(); j++) {

        String env = XPathHelper.valueOf(valueNodes.item(j), "@environment");
        Environment environment = Environment.Any;
        if (StringUtils.isNotBlank(env)) {
          try {
            environment = Environment.valueOf(StringUtils.capitalize(env));
          } catch (Throwable t) {
            throw new IllegalStateException("Environment '" + env + "' is unknown");
View Full Code Here

Examples of com.adaptrex.tools.environment.Environment

    System.out.println(HR);
  }

 
  private void printEnvironment() {
    Environment env = environmentService.getEnvironment();

    System.out.println("Adaptrex Environment" + CR + HR + CR + "Webroot Path    : "
        + env.getWebrootPath() + CR + "Sencha Cmd Path : " + env.getCmdPath() + CR + HR + CR);

    System.out.println("Available Frameworks" + CR + HR);

    Map<String, AdaptrexJS> adaptrexFrameworks = env.getAdaptrexFrameworks();
    for (String key : adaptrexFrameworks.keySet()) {
      AdaptrexJS adaptrex = adaptrexFrameworks.get(key);
      System.out.println("Adaptrex        : " + adaptrex.getVersion() + " (" + adaptrex.getFolderName()
          + ")");
    }

    Map<String, ExtJS> extFrameworks = env.getExtFrameworks();
    for (String key : extFrameworks.keySet()) {
      ExtJS ext = extFrameworks.get(key);
      System.out.println("ExtJS           : " + ext.getVersion() + " (" + ext.getFolderName() + ")");
    }

    Map<String, SenchaTouch> senchaTouchFrameworks = env.getSenchaTouchFrameworks();
    for (String key : senchaTouchFrameworks.keySet()) {
      SenchaTouch st = senchaTouchFrameworks.get(key);
      System.out.println("Sencha Touch    : " + st.getVersion() + " (" + st.getFolderName() + ")");
    }
    System.out.println(HR);

    System.out.println(CR + "Configured Webapps" + CR + HR);
    Map<String, Webapp> webapps = env.getWebapps();
    if (webapps.size() > 0) {
      for (String key : webapps.keySet()) {
        Webapp webapp = webapps.get(key);
        System.out.println(webapp.getName() + " (" + webapp.getFullPath() + ")");
      }
View Full Code Here

Examples of com.alphacsp.cit.Environment

    public String getDescription() {
        return "Change the current directory";
    }

    public void execute(ExecutionContext executionContext) throws CommandExecutionException {
        Environment environment = executionContext.getEnvironment();
        List<String> parameters = executionContext.getParameters();

        FileValue pwd = environment.pwd();

        if (parameters.isEmpty()) {
            environment.cd();
        } else {
            String newFolder = parameters.get(0);
            FileValue newPwd = pwd.child(newFolder);
            File newFolderFile = newPwd.getAsFile();
            if (! newFolderFile.exists()) {
                throw new CommandExecutionException("No such directory: " + newFolderFile);
            }
            if (! newFolderFile.isDirectory()) {
                throw new CommandExecutionException(newFolderFile + "is not a directory");
            }
            environment.cd(newFolderFile.getAbsolutePath());
        }

    }
View Full Code Here

Examples of com.badlogic.gdx.graphics.g3d.Environment

    context.setDepthMask(depthMask);
  }

  private final Vector3 tmpV1 = new Vector3();
  protected final void bindLights(final Renderable renderable) {
    final Environment lights = renderable.environment;
    final Array<DirectionalLight> dirs = lights.directionalLights;
    final Array<PointLight> points = lights.pointLights;
   
    if (dirLightsLoc >= 0) {
      for (int i = 0; i < directionalLights.length; i++) {
        if (dirs == null || i >= dirs.size) {
          if (lightsSet && directionalLights[i].color.r == 0f && directionalLights[i].color.g == 0f && directionalLights[i].color.b == 0f)
            continue;
          directionalLights[i].color.set(0,0,0,1);
        } else if (lightsSet && directionalLights[i].equals(dirs.get(i)))
          continue;
        else
          directionalLights[i].set(dirs.get(i));
       
        int idx = dirLightsLoc + i * dirLightsSize;
        program.setUniformf(idx+dirLightsColorOffset, directionalLights[i].color.r, directionalLights[i].color.g, directionalLights[i].color.b);
        program.setUniformf(idx+dirLightsDirectionOffset, directionalLights[i].direction);
        if (dirLightsSize <= 0)
          break;
      }
    }
   
    if (pointLightsLoc >= 0) {
      for (int i = 0; i < pointLights.length; i++) {
        if (points == null || i >= points.size) {
          if (lightsSet && pointLights[i].intensity == 0f)
            continue;
          pointLights[i].intensity = 0f;
        } else if (lightsSet && pointLights[i].equals(points.get(i)))
          continue;
        else
          pointLights[i].set(points.get(i));

        int idx = pointLightsLoc + i * pointLightsSize;
        program.setUniformf(idx+pointLightsColorOffset, pointLights[i].color.r, pointLights[i].color.g, pointLights[i].color.b);
        program.setUniformf(idx+pointLightsPositionOffset, pointLights[i].position);
        if (pointLightsIntensityOffset >= 0)
          program.setUniformf(idx+pointLightsIntensityOffset, pointLights[i].intensity);
        if (pointLightsSize <= 0)
          break;
      }
    }

    if (lights.has(ColorAttribute.Fog)) {
      set(u_fogColor, ((ColorAttribute)lights.get(ColorAttribute.Fog)).color);
    }
   
    if (lights.shadowMap != null) {
      set(u_shadowMapProjViewTrans, lights.shadowMap.getProjViewTrans());
      set(u_shadowTexture, lights.shadowMap.getDepthMap());
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.