Examples of MachineType


Examples of mekanism.common.block.BlockMachine.MachineType

    }

  @Override
  public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
  {
    MachineType type = MachineType.get(itemstack);
   
    if(MachineType.get(itemstack) == MachineType.ELECTRIC_CHEST)
    {
      if(!world.isRemote)
      {
View Full Code Here

Examples of mekanism.common.block.BlockMachine.MachineType

    if(!(data[0] instanceof ItemStack) || !(((ItemStack)data[0]).getItem() instanceof ISustainedTank))
    {
      return false;
    }
   
    MachineType type = MachineType.get((ItemStack)data[0]);
   
    return type == MachineType.ELECTRIC_PUMP || type == MachineType.PORTABLE_TANK || type == MachineType.FLUIDIC_PLENISHER;
  }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.MachineType

   }


   @Test(groups = "live", dependsOnMethods = "testListMachineType")
   public void testGetMachineType() {
      MachineType machineType = api().get(this.machineType.getName());
      assertNotNull(machineType);
      assertMachineTypeEquals(machineType, this.machineType);
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.MachineType

   }


   @Test(groups = "live", dependsOnMethods = "testListMachineType")
   public void testGetMachineType() {
      MachineType machineType = api().getInZone(DEFAULT_ZONE_NAME, this.machineType.getName());
      assertNotNull(machineType);
      assertMachineTypeEquals(machineType, this.machineType);
   }
View Full Code Here

Examples of org.jclouds.googlecomputeengine.domain.MachineType

   }


   @Test(groups = "live", dependsOnMethods = "testListMachineType")
   public void testGetMachineType() {
      MachineType machineType = api().getInZone(DEFAULT_ZONE_NAME, this.machineType.getName());
      assertNotNull(machineType);
      assertMachineTypeEquals(machineType, this.machineType);
   }
View Full Code Here

Examples of org.openquark.cal.runtime.MachineType

       
        String machineTypeProperty = System.getProperty(MachineConfiguration.MACHINE_TYPE_PROP);

        // Lecc is the default machine type.
        boolean useGMachine = machineTypeProperty != null && machineTypeProperty.equals(MachineType.G.toString());
        MachineType machineType = useGMachine ? MachineType.G : MachineType.LECC;
       
        return getProgramManager(machineType, resourceRepositoryProvider, resourceAccess);
    }
View Full Code Here

Examples of org.openquark.cal.runtime.MachineType

                ProgramManager.getProgramManager(carAwareProgramResourceRepositoryProvider, workspace) :
                    ProgramManager.getProgramManager(machineTypeOverride, carAwareProgramResourceRepositoryProvider, workspace);

               
        // Note: if the g-machine also uses a resource manager, we can remove the if test.
        final MachineType realMachineType = programManager.getMachineType();
        if (realMachineType == MachineType.LECC) {
            // Register the program resource manager so that the resources can be managed by the workspace.
            // Override default if the source generation root is overridden.
            final ResourceManager fileSystemBasedProgramResourceManager;
            if (sourceGenerationRootOverride != null) {
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.