1 | package de.uka.ipd.sdq.simulation.abstractsimengine.desmoj; |
2 | |
3 | import de.uka.ipd.sdq.simulation.abstractsimengine.SimCondition; |
4 | import desmoj.core.simulator.Condition; |
5 | import desmoj.core.simulator.Entity; |
6 | |
7 | /** |
8 | * @author Steffen Becker |
9 | * @author Philipp Merkle |
10 | */ |
11 | public class DesmoJConditionWrapper extends Condition { |
12 | |
13 | private SimCondition abstractCondition; |
14 | |
15 | public DesmoJConditionWrapper(SimCondition abstractCondition, DesmoJModel owner) { |
16 | super(owner, abstractCondition.getClass().getName(), false); |
17 | this.abstractCondition = abstractCondition; |
18 | } |
19 | |
20 | @Override |
21 | public boolean check() { |
22 | return abstractCondition.check(); |
23 | } |
24 | |
25 | @Override |
26 | public boolean check(Entity arg0) { |
27 | return false; |
28 | } |
29 | |
30 | } |