Class DefaultObjectCreationProcess
- java.lang.Object
- 
- jadex.commons.SimplePropertyObject
- 
- jadex.extension.envsupport.environment.DefaultObjectCreationProcess
 
 
- 
- All Implemented Interfaces:
- IPropertyObject,- ISpaceProcess
 
 public class DefaultObjectCreationProcess extends SimplePropertyObject implements ISpaceProcess 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).
 $clock.
- 
- 
Field SummaryFields Modifier and Type Field Description protected SimpleValueFetcherfetcherThe fetcher.protected doublelastrateThe last rate.protected doublelasttickThe last executed tick.protected doublelasttimeThe last executed time.- 
Fields inherited from class jadex.commons.SimplePropertyObjectpcs, properties
 - 
Fields inherited from interface jadex.extension.envsupport.environment.ISpaceProcessID
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultObjectCreationProcess()Create a new create food process.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(IClockService clock, IEnvironmentSpace space)Executes the environment processjava.lang.ObjectgetProperty(java.lang.String name)Returns a property.voidshutdown(IEnvironmentSpace space)This method will be executed by the object before the process is removed from the execution queue.voidstart(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.SimplePropertyObjectaddPropertyChangeListener, getProperties, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface jadex.commons.IPropertyObjectgetPropertyNames, hasProperty, setProperty
 
- 
 
- 
- 
- 
Field Detail- 
lasttickprotected double lasttick The last executed tick.
 - 
lasttimeprotected double lasttime The last executed time.
 - 
lastrateprotected double lastrate The last rate.
 - 
fetcherprotected SimpleValueFetcher fetcher The fetcher.
 
- 
 - 
Method Detail- 
startpublic void start(IClockService clock, IEnvironmentSpace space) This method will be executed by the object before the process gets added to the execution queue.- Specified by:
- startin interface- ISpaceProcess
- Parameters:
- clock- The clock.
- space- The space this process is running in.
 
 - 
shutdownpublic void shutdown(IEnvironmentSpace space) This method will be executed by the object before the process is removed from the execution queue.- Specified by:
- shutdownin interface- ISpaceProcess
- Parameters:
- clock- The clock.
- space- The space this process is running in.
 
 - 
executepublic void execute(IClockService clock, IEnvironmentSpace space) Executes the environment process- Specified by:
- executein interface- ISpaceProcess
- Parameters:
- clock- The clock.
- space- The space this process is running in.
 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String name) Returns a property.- Specified by:
- getPropertyin interface- IPropertyObject
- Overrides:
- getPropertyin class- SimplePropertyObject
- Parameters:
- name- name of the property
- Returns:
- the property
 
 
- 
 
-