|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjas.events.SimEvent
jas.events.SimCollectionEvent
public class SimCollectionEvent
It is able to inform all elements within a collection about an event.
Title: JAS
Description: Java Agent-based Simulation library
Copyright (C) 2002 Michele Sonnessa
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
| Constructor Summary | |
|---|---|
SimCollectionEvent(java.util.Collection elements,
java.lang.Class objectType,
java.lang.String method)
Create a collection event using late binding method call. |
|
SimCollectionEvent(java.util.Collection elements,
int actionType)
Create a collection event using early binding method call. |
|
| Method Summary | |
|---|---|
void |
fireEvent()
Fire the event, calling each element contained into the collection. |
static java.lang.Class |
getObjectClass(java.lang.Object object)
Return a reference to the class of the given object. |
static java.lang.Class |
getObjectClass(java.lang.String className)
Return a reference to the class with the given name. |
void |
setForObject(java.util.Collection elements,
java.lang.Class objectType,
java.lang.String method)
Recycling method. |
void |
setForObject(java.util.Collection elements,
int actionType)
Recycling method. |
| Methods inherited from class jas.events.SimEvent |
|---|
canBeTrashed, compareTo, getLoop, getTime, setForObject, setLoop, setTime, setTime, setTimeAtNextLoop, setTrashable, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimCollectionEvent(java.util.Collection elements,
java.lang.Class objectType,
java.lang.String method)
public SimCollectionEvent(java.util.Collection elements,
int actionType)
| Method Detail |
|---|
public void fireEvent()
fireEvent in class SimEventpublic static java.lang.Class getObjectClass(java.lang.Object object)
public static java.lang.Class getObjectClass(java.lang.String className)
public void setForObject(java.util.Collection elements,
java.lang.Class objectType,
java.lang.String method)
public void setForObject(java.util.Collection elements,
int actionType)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||