machinetype.java

来自「网格agent平台(GAP ,Grid AgentsPlatform)开发包」· Java 代码 · 共 53 行

JAVA
53
字号
/*
 ****************************************************************************************
 * 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 + =
减小字号Ctrl + -
显示快捷键?