Package edu.kit.ipd.sdq.eventsim.util
Class PCMEntityHelper
- java.lang.Object
-
- edu.kit.ipd.sdq.eventsim.util.PCMEntityHelper
-
public class PCMEntityHelper extends Object
Provides helper methods for PCM entities implementing theEntity
interface.
-
-
Constructor Summary
Constructors Constructor Description PCMEntityHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
equals(org.palladiosimulator.pcm.core.entity.Entity e1, org.palladiosimulator.pcm.core.entity.Entity e2)
Checks whether the passed entities are equal.static String
toString(org.palladiosimulator.pcm.core.entity.Entity entity)
Builds a string representation of an entity.
-
-
-
Method Detail
-
toString
public static String toString(org.palladiosimulator.pcm.core.entity.Entity entity)
Builds a string representation of an entity. The returned string contains the entities's name, class name and ID.- Parameters:
entity
- the entity which is to be represented by a string- Returns:
- the string representation
-
equals
public static boolean equals(org.palladiosimulator.pcm.core.entity.Entity e1, org.palladiosimulator.pcm.core.entity.Entity e2)
Checks whether the passed entities are equal. Two entities are regarded to be equal if they carry the same ID.- Parameters:
e1
- the first entitye2
- the second entity- Returns:
- true if e1 and e2 are equal; false else.
-
-