Package org.onosproject.net.pi.service
Class PiTranslatedEntity<T extends PiTranslatable,E extends PiEntity>
- java.lang.Object
-
- org.onosproject.net.pi.service.PiTranslatedEntity<T,E>
-
@Beta public final class PiTranslatedEntity<T extends PiTranslatable,E extends PiEntity> extends java.lang.Object
Representation of the result of a PD-to-PI translation associated to a PI entity handle.
-
-
Constructor Summary
Constructors Constructor Description PiTranslatedEntity(T original, E translated, PiHandle handle)
Creates a new translated entity.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiEntityType
entityType()
Returns the type of the translated entity.PiHandle
handle()
Returns the PI entity handle.T
original()
Returns the original PD entity.E
translated()
Returns the translated PI entity.
-
-
-
Method Detail
-
entityType
public final PiEntityType entityType()
Returns the type of the translated entity.- Returns:
- type of the translated entity
-
original
public final T original()
Returns the original PD entity.- Returns:
- instance of PI translatable entity
-
translated
public final E translated()
Returns the translated PI entity.- Returns:
- PI entity
-
handle
public final PiHandle handle()
Returns the PI entity handle.- Returns:
- PI entity handle
-
-