patternpt.java

来自「Rakiura JFern是一个非常轻型的带有模拟器的Petri网络框架」· Java 代码 · 共 42 行

JAVA
42
字号
// This is copyrighted source file, part of Rakiura JFern package. // See the file LICENSE for copyright information and the terms and conditions// for copying, distributing and modifications of Rakiura JFern package.// Copyright (C) 1999-2002 by Mariusz Nowostawski and others  [http://www.rakiura.org]package org.rakiura.cpn.lib;/**/import org.rakiura.cpn.InputArc;import org.rakiura.cpn.Place;/** * Base abstract class for components. This is an abstract pattern * with single input place and single transition with an arc to that * place. It is being used by all other, more complex net patterns.  *  *<br><br> * PatterPT.java<br> * Created: Mon Oct  2 22:03:31 2000<br> * * @author Mariusz Nowostawski * @version 2.1.0 $Revision: 1.3 $ */public abstract class PatternPT extends PatternT {  protected Place inputPlace;  protected InputArc inputArc;  public PatternPT() {    this.inputPlace = new Place();    this.inputArc = new InputArc(inputPlace, transition);    this.inputArc.setExpression(this.inputArc.new Expression() {        public void evaluate() {          var("X");        }      });    add(inputPlace);  }  } // PatternT//////////////////// end of file ////////////////////

⌨️ 快捷键说明

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