1 | /** |
2 | * |
3 | */ |
4 | package de.uka.ipd.sdq.simulation.abstractsimengine.desmoj; |
5 | |
6 | import de.uka.ipd.sdq.simulation.abstractsimengine.AbstractSimEntityDelegator; |
7 | import de.uka.ipd.sdq.simulation.abstractsimengine.IEntity; |
8 | import desmoj.core.simulator.Entity; |
9 | import desmoj.core.simulator.TimeSpan; |
10 | |
11 | /** |
12 | * @author Steffen Becker |
13 | * @author Philipp Merkle |
14 | */ |
15 | public class DesmoJEntity extends Entity implements IEntity { |
16 | |
17 | private AbstractSimEntityDelegator entity; |
18 | |
19 | public DesmoJEntity(AbstractSimEntityDelegator entity, DesmoJModel owner, String name) { |
20 | super(owner, name, false); |
21 | this.entity = entity; |
22 | } |
23 | |
24 | @Override |
25 | public void reschedule(double delay) { |
26 | this.reSchedule(new TimeSpan(delay)); |
27 | } |
28 | |
29 | public AbstractSimEntityDelegator getEncapsulatedEntity() { |
30 | return entity; |
31 | } |
32 | |
33 | } |