flagjob.java

来自「The ElectricTM VLSI Design System is an 」· Java 代码 · 共 38 行

JAVA
38
字号
package com.sun.electric.tool.generator.flag;import com.sun.electric.database.hierarchy.Cell;import com.sun.electric.database.network.NetworkTool;import com.sun.electric.tool.Job;import com.sun.electric.tool.JobException;import com.sun.electric.tool.ncc.basic.CellContext;import com.sun.electric.tool.ncc.basic.NccUtils;/** This class handles the "Job" aspects of the Infinity layout generator */public class FlagJob extends Job {	static final long serialVersionUID = 0;	static private void prln(String msg) {System.out.println(msg);}		public FlagJob() {		super ("Generate layout for Infinity", NetworkTool.getNetworkTool(), 			   Job.Type.CHANGE, null, null, Job.Priority.ANALYSIS);		startJob();	}	@Override	public boolean doIt() throws JobException {		// figure out what to work on		CellContext cc = NccUtils.getCurrentCellContext();		if (cc==null) return true;		Cell cell = cc.cell;				if (!cell.isSchematic()) {			prln("Current cell must be a schematic for which you wish to generate Infinity layout");			return true;		}		new Flag(cell, this);		return true;	}}

⌨️ 快捷键说明

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