|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.SimplePropertyObject
jadex.application.space.envsupport.environment.DefaultObjectCreationProcess
public class DefaultObjectCreationProcess
Process for continuously creating objects in the space. The following properties are supported:
type: The type of the object to be created (String, required).
properties: The initial properties of the object (Map, optional).
condition: A condition to enable/disable object creation (boolean, optional).
tickrate: Number of ticks between object creation (double, optional, 0 == off).
timerate: Number of milliseconds between object creation (double, optional, 0 == off).
$space
and to the clock service using $clock.
| Field Summary | |
|---|---|
protected SimpleValueFetcher |
fetcher
The fetcher. |
protected double |
lasttick
The last executed tick. |
protected double |
lasttime
The last executed time. |
| Fields inherited from class jadex.commons.SimplePropertyObject |
|---|
pcs, properties |
| Fields inherited from interface jadex.application.space.envsupport.environment.ISpaceProcess |
|---|
ID |
| Constructor Summary | |
|---|---|
DefaultObjectCreationProcess()
Create a new create food process. |
|
| Method Summary | |
|---|---|
void |
execute(IClockService clock,
IEnvironmentSpace space)
Executes the environment process |
Object |
getProperty(String name)
Returns a property. |
void |
shutdown(IEnvironmentSpace space)
This method will be executed by the object before the process is removed from the execution queue. |
void |
start(IClockService clock,
IEnvironmentSpace space)
This method will be executed by the object before the process gets added to the execution queue. |
| Methods inherited from class jadex.commons.SimplePropertyObject |
|---|
addPropertyChangeListener, getProperties, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.IPropertyObject |
|---|
getPropertyNames, hasProperty, setProperty |
| Field Detail |
|---|
protected double lasttick
protected double lasttime
protected SimpleValueFetcher fetcher
| Constructor Detail |
|---|
public DefaultObjectCreationProcess()
| Method Detail |
|---|
public void start(IClockService clock,
IEnvironmentSpace space)
start in interface ISpaceProcessclock - The clock.space - The space this process is running in.public void shutdown(IEnvironmentSpace space)
shutdown in interface ISpaceProcessclock - The clock.space - The space this process is running in.
public void execute(IClockService clock,
IEnvironmentSpace space)
execute in interface ISpaceProcessclock - The clock.space - The space this process is running in.public Object getProperty(String name)
getProperty in interface IPropertyObjectgetProperty in class SimplePropertyObjectname - name of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||