tokensremovedevent.java

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

JAVA
50
字号
// 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.event;/**/import org.rakiura.cpn.Multiset;import org.rakiura.cpn.Place;/** * Represents an Place event. This even is generated * when tokens are removed from the place. *  *<br><br> * TokensRemovedEvent.java<br> * Created: Thu Apr 11 16:13:43 2002<br> * *@author  <a href="mariusz@rakiura.org">Mariusz Nowostawski</a> *@version 2.1.0 $Revision: 1.1 $ *@since 2.0 */public class TokensRemovedEvent extends PlaceEvent {    /**/  private Multiset multiset;    /**   * Creates a new <code>TokensRemovedEvent</code> instance.   * @param aPlace a <code>Place</code> value.   * @param aTokens a <code>Multiset</code> containing all removed tokens.   */  public TokensRemovedEvent(final Place aPlace, final Multiset aTokens) {    super(aPlace);    this.multiset = aTokens;  }  /**   * Returns the tokens which where removed from the place.   * @return a <code>Multiset</code> value   */  public Multiset getTokens() {    return this.multiset;  }  } // TokensRemovedEvent//////////////////// end of file ////////////////////

⌨️ 快捷键说明

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