⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsurface.java

📁 一个用于排队系统仿真的开源软件,有非常形象的图象仿真过程!
💻 JAVA
字号:
// Copyright (C) Chris Pudney, The University of Western Australia, 1998.
// All rights reserved.
//  
// Permission to use, copy, modify and distribute this software and its
// documentation only for the purposes of teaching and research is hereby
// granted without fee, provided that the above copyright notice and this
// permission notice appear in all copies of this software/documentation
// and that you do not sell the software.  No commercial use or
// distribution of the software is permitted without the consent of the
// copyright owners.  Commercial licensing is available by contacting the
// author(s).
// 
// THIS SOFTWARE/DOCUMENTATION IS PROVIDED WITH NO WARRANTY, EXPRESS OR
// IMPLIED, INCLUDING, WITHOUT LIMITATION, WARRANTY OF MERCHANTABILITY OR
// FITNESS FOR A PARTICULAR PURPOSE.
package jmt.engine.jaba.Hull;
import java.util.Enumeration;
import java.util.Vector;


/**
 * A class representing a dynamic surface.
 *
 * @author  Chris Pudney <mailto:cpudney@alphapharm.pharm.uwa.edu.au>
 * @version 1.1
 */
public class DSurface extends Surface	
{
  /**
   * Add a polygonal face to a surface.
   *
   * @param p  a polygon representing the face
   */
public void addFace(Polygon p)
  {
    getFaces().addElement(p);
  }


  /**
   * Add a set of polygonal faces to a surface.
   *
   * @param v  vector of polygonal faces
   */
public void addFaces(Vector v)
  {
    for (Enumeration e = v.elements();
	 e.hasMoreElements();)
      {
	addFace((Polygon)e.nextElement());
      }
  }


  /**
   * Delete a polygonal face from a surface.
   *
   * @param  a polygon representing the face
   */
public boolean deleteFace(Polygon p)
  {
    return getFaces().removeElement(p);
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -