Examples of Volume


Examples of com.tommytony.war.volume.Volume

    return this.flagVolume;
  }

  private void setFlagVolume() {
    if (this.flagVolume == null) {
      this.flagVolume = new Volume(this.getName() + "flag", this.warzone.getWorld());
    }
    if (this.flagVolume.isSaved()) {
      this.flagVolume.resetBlocks();
    }
    int x = this.teamFlag.getBlockX();
View Full Code Here

Examples of com.tommytony.war.volume.Volume

    this.flagVolume.setCornerTwo(this.warzone.getWorld().getBlockAt(x + 1, y + 3, z + 1));
  }

  public void initializeTeamFlag() {
    // make air (old two-high above floor)
    Volume airGap = new Volume(new Location(this.flagVolume.getWorld(),
        this.flagVolume.getCornerOne().getX(), this.flagVolume
            .getCornerOne().getY() + 1, this.flagVolume
            .getCornerOne().getZ()), new Location(
        this.flagVolume.getWorld(), this.flagVolume.getCornerTwo()
            .getX(), this.flagVolume.getCornerOne().getY() + 2,
        this.flagVolume.getCornerTwo().getZ()));
    airGap.setToMaterial(Material.AIR);

    // Set the flag blocks
    int x = this.teamFlag.getBlockX();
    int y = this.teamFlag.getBlockY();
    int z = this.teamFlag.getBlockZ();
View Full Code Here

Examples of com.tommytony.war.volume.Volume

*
*/
public class VolumeMapper {

  public static Volume loadVolume(String volumeName, String zoneName, World world) throws SQLException {
    Volume volume = new Volume(volumeName, world);
    VolumeMapper.load(volume, zoneName, world);
    return volume;
  }
View Full Code Here

Examples of com.tommytony.war.volume.Volume

      // lobby world
      String lobbyWorldName = warzoneRootSection.getString(lobbyPrefix + "world");
      World lobbyWorld = War.war.getServer().getWorld(lobbyWorldName);
           
      // create the lobby
      Volume lobbyVolume = null;
      try {
        lobbyVolume = warzone.loadStructure("lobby", lobbyWorld, connection);
      } catch (SQLException e) {
        War.war.getLogger().log(Level.WARNING, "Failed to load warzone lobby", e);
      }
View Full Code Here

Examples of ef.api.Volume

        return request;
    }

    @Override
    public Response execute(RmRequest request) {
        Volume volume = volumeManager.getRequiredVolume(request.targets[0]);

        for(String target: request.targets){
            volume.remove(target);
        }

        MapResponse response = new MapResponse();
        response.put("removed", request.targets);
        return response;
View Full Code Here

Examples of es.ipsa.atril.doc.volumes.Volume

   
    super.save(oSes);

    if (getVolume(oSes)==null) {
      Log.out.debug("Getting default volume");
      Volume oVol = DAO.defaultVolume(oSes.getDms().getVolumeManager());
      if (oVol==null) throw new DmsException("No default volume is set");
      oVol.addDocument(getDocument());
      oVol.save();
      Log.out.debug("Added Ticket "+getDocument().id()+" to Volume "+oVol.name());
    }
  }
View Full Code Here

Examples of io.fathom.cloud.compute.scheduler.LxcConfigBuilder.Volume

            hostFilesystem.copyImageToRootfs(container.imageId, rootfsPath);

            for (VolumeType volumeType : new VolumeType[] { VolumeType.Ephemeral, VolumeType.Persistent }) {
                File path = hostFilesystem.createVolume(volumeType, containerId);

                Volume volume = new Volume();
                volume.hostPath = path.getAbsolutePath();
                volume.instancePath = "/volumes/" + volumeType.name().toLowerCase();
                container.lxcConfig.volumes.add(volume);
            }
View Full Code Here

Examples of jm.audio.synth.Volume

        if (frequency != -1.0f) {
            osc.setChoice(0);
            osc.setFrq(frequency);
        }
        Envelope env = new Envelope(osc, envPoints);
        Volume vol = new Volume(env);
        StereoPan span = new StereoPan(vol);
        if (output == RENDER) sout = new SampleOut(span);
    }
View Full Code Here

Examples of org.apache.accumulo.core.volume.Volume

    }
  }
 
  public static synchronized int getAccumuloPersistentVersion(VolumeManager fs) {
    // It doesn't matter which Volume is used as they should all have the data version stored
    Volume v = fs.getVolumes().iterator().next();
    Path path = ServerConstants.getDataVersionLocation(v);
    return getAccumuloPersistentVersion(v.getFileSystem(), path);
  }
View Full Code Here

Examples of org.jclouds.abiquo.domain.cloud.Volume

      assertEvents(options);
   }

   public void testListEventsFilteredByVolume() {
      String name = randomName();
      Volume volume = createVolume();
      volume.setName(name);
      volume.update();
      volume.delete(); // We don't need it any more. events already exist

      EventOptions options = EventOptions.builder().dateFrom(new Date()).volumeName(name).build();
      assertEvents(options);
   }
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.