Package org.onosproject.net
Class DataPlaneEntity
- java.lang.Object
-
- org.onosproject.net.DataPlaneEntity
-
public class DataPlaneEntity extends java.lang.Object
Generic abstraction to hold dataplane entities.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DataPlaneEntity.Type
Types of entity.
-
Constructor Summary
Constructors Constructor Description DataPlaneEntity(FlowEntry flow)
Creates a dataplane entity from a flow entry.DataPlaneEntity(Group group)
Creates a dataplane entity from a group entry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
FlowEntry
getFlowEntry()
Returns the flow entry.Group
getGroupEntry()
Returns the group entry.DataPlaneEntity.Type
getType()
Returns the type of the entry.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DataPlaneEntity
public DataPlaneEntity(FlowEntry flow)
Creates a dataplane entity from a flow entry.- Parameters:
flow
- the inner flow entry
-
DataPlaneEntity
public DataPlaneEntity(Group group)
Creates a dataplane entity from a group entry.- Parameters:
group
- the inner group entry
-
-
Method Detail
-
getFlowEntry
public FlowEntry getFlowEntry()
Returns the flow entry.- Returns:
- the flow entry
-
getGroupEntry
public Group getGroupEntry()
Returns the group entry.- Returns:
- the group entry
-
getType
public DataPlaneEntity.Type getType()
Returns the type of the entry.- Returns:
- the type
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-