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

📄 machinetype.java

📁 网格agent平台(GAP ,Grid AgentsPlatform)开发包
💻 JAVA
字号:
/*
 ****************************************************************************************
 * Copyright ? Giovanni Novelli
 * All Rights Reserved.
 ****************************************************************************************
 *
 * License:      GPL - http://www.gnu.org/copyleft/gpl.html
 *
 * MachineType.java
 *
 * Created on 22 January 2008, 09.00 by Giovanni Novelli
 *
 * $Id$
 *
 */
package net.sf.gap.xml.types;

/**
 *
 * @author Giovanni Novelli
 */
public class MachineType {
	private PEListType peList;

	public MachineType() {
		this.setPeList(new PEListType());
	}

	public MachineType(PEListType peList) {
		this.setPeList(peList);
	}

	public boolean addPE(int MIPS) {
		return this.getPeList().add(new PEType(MIPS));
	}

	public int getMIPS() {
		return this.getPeList().getMIPS();
	}

	public boolean addPE(PEType pe) {
		return this.getPeList().add(pe);
	}

	public PEListType getPeList() {
		return peList;
	}

	public void setPeList(PEListType peList) {
		this.peList = peList;
	}
}

⌨️ 快捷键说明

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