Class PiInstruction
- java.lang.Object
-
- org.onosproject.net.flow.instructions.PiInstruction
-
- All Implemented Interfaces:
Instruction
@Beta public final class PiInstruction extends java.lang.Object implements Instruction
Representation of a protocol-independent instruction.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.onosproject.net.flow.instructions.Instruction
Instruction.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PiTableAction
action()
Returns the protocol-independent table action defined by this instruction.boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
toString()
Instruction.Type
type()
Returns the type of instruction.
-
-
-
Method Detail
-
action
public PiTableAction action()
Returns the protocol-independent table action defined by this instruction.- Returns:
- an action
-
type
public Instruction.Type type()
Description copied from interface:Instruction
Returns the type of instruction.- Specified by:
type
in interfaceInstruction
- Returns:
- type of instruction
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-