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

📄 abstractarc.java

📁 Rakiura JFern是一个非常轻型的带有模拟器的Petri网络框架
💻 JAVA
字号:
// 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;/** * Implements an abstract Arc. *  *<br><br> * AbstractArc.java<br> * Created: Mon Sep 25 21:27:28 2000<br> * *  *@author  <a href="mariusz@rakiura.org">Mariusz Nowostawski</a> *@version 2.1.0 $Revision: 1.3 $ *@since 1.0 */public abstract class AbstractArc extends Node implements Arc {  /**/  private Place place;  /**/  private Transition transition;  /**/  private CpnContext context = new CpnContext();  /**/  protected AbstractArc() {  }  /**   * Creates a new <code>AbstractArc</code> instance.   * @param aFrom a <code>Place</code> value   * @param aTo a <code>Transition</code> value   */  public AbstractArc(final Place aFrom, final Transition aTo){    this.place = aFrom;    this.transition = aTo;  }  /**   * Creates a new <code>AbstractArc</code> instance.   * @param aFrom a <code>Transition</code> value   * @param aTo a <code>Place</code> value   */  public AbstractArc(final Transition aFrom, final Place aTo){    this.place = aTo;    this.transition = aFrom;  }  /**   * Returns the transition for this arc.   * @return a <code>Transition</code> value.   */  public Transition transition(){ return this.transition; }  /**   * Returns the place for this arc.   * @return a <code>Place</code> value   */  public Place place(){ return this.place; }  /**   * Returns the current context for this node.   *@return CPN context for this node.   */  public CpnContext getContext() {    return this.context;  }    /**   * Sets the current context for this node.   *@param aContext current context for this node.   */  public void setContext(final CpnContext aContext) {    this.context = aContext;  }} // AbstractArc//////////////////// end of file ////////////////////

⌨️ 快捷键说明

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