1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.simulation.abstractsimengine.ssj; |
5 | |
6 | import umontreal.iro.lecuyer.simevents.Event; |
7 | import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator; |
8 | import de.uka.ipd.sdq.simulation.abstractsimengine.IEntity; |
9 | |
10 | /** |
11 | * @author Steffen Becker |
12 | * @author Philipp Merkle |
13 | */ |
14 | public class SSJEntity implements IEntity { |
15 | |
16 | private AbstractSimEntityDelegator entity; |
17 | |
18 | protected boolean isScheduled = false; |
19 | protected Event nextEventForThisEntity = null; |
20 | |
21 | public SSJEntity(AbstractSimEntityDelegator entity, String name) { |
22 | this.entity = entity; |
23 | } |
24 | |
25 | public IEntity getEncapsulatedEntity() { |
26 | return entity; |
27 | } |
28 | |
29 | public boolean isScheduled() { |
30 | return isScheduled; |
31 | } |
32 | |
33 | public void reschedule(double d) { |
34 | nextEventForThisEntity.reschedule(d); |
35 | } |
36 | |
37 | } |