public abstract class IndividualEvent<I extends Individual> extends java.lang.Object implements Event
Modifier and Type | Field and Description |
---|---|
protected I |
individual
Индивидуум.
|
Modifier | Constructor and Description |
---|---|
protected |
IndividualEvent(I individual)
Конструктор.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Выполнить событие.
|
abstract void |
executeIfAlive()
Выполнить действие при условии, что индивидуум жив.
|
protected final I extends Individual individual
protected IndividualEvent(I individual)
individual
- индивидуум.public final void execute() throws PmException
Event
execute
in interface Event
PmException
- если нарушены ограничения модели.public abstract void executeIfAlive() throws PmException
PmException
- если выполнить действие не удалось.