public class DefaultObjectCreationProcess extends SimplePropertyObject implements ISpaceProcess
$clock
.Modifier and Type | Field and Description |
---|---|
protected SimpleValueFetcher |
fetcher
The fetcher.
|
protected double |
lastrate
The last rate.
|
protected double |
lasttick
The last executed tick.
|
protected double |
lasttime
The last executed time.
|
pcs, properties
ID
Constructor and Description |
---|
DefaultObjectCreationProcess()
Create a new create food process.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(IClockService clock,
IEnvironmentSpace space)
Executes the environment process
|
java.lang.Object |
getProperty(java.lang.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.
|
addPropertyChangeListener, getProperties, getPropertyNames, hasProperty, removePropertyChangeListener, setProperties, setProperty, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getPropertyNames, hasProperty, setProperty
protected double lasttick
protected double lasttime
protected double lastrate
protected SimpleValueFetcher fetcher
public DefaultObjectCreationProcess()
public void start(IClockService clock, IEnvironmentSpace space)
start
in interface ISpaceProcess
clock
- The clock.space
- The space this process is running in.public void shutdown(IEnvironmentSpace space)
shutdown
in interface ISpaceProcess
clock
- The clock.space
- The space this process is running in.public void execute(IClockService clock, IEnvironmentSpace space)
execute
in interface ISpaceProcess
clock
- The clock.space
- The space this process is running in.public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface IPropertyObject
getProperty
in class SimplePropertyObject
name
- name of the property