net.named_data.jndn
public class ForwardingFlags extends Object
| Constructor and Description |
|---|
ForwardingFlags()
Create a new ForwardingFlags with "active" and "childInherit" set and all
other flags cleared.
|
ForwardingFlags(ForwardingFlags forwardingFlags)
Create a new ForwardingFlags as a copy of the given value.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getActive()
Get the value of the "active" flag.
|
boolean |
getAdvertise()
Get the value of the "advertise" flag.
|
boolean |
getCapture()
Get the value of the "capture" flag.
|
boolean |
getCaptureOk()
Get the value of the "captureOk" flag.
|
boolean |
getChildInherit()
Get the value of the "childInherit" flag.
|
int |
getForwardingEntryFlags()
Get an integer with the bits set according to the flags as used by the
ForwardingEntry message.
|
boolean |
getLast()
Get the value of the "last" flag.
|
boolean |
getLocal()
Get the value of the "local" flag.
|
int |
getNfdForwardingFlags()
Get an integer with the bits set according to the NFD forwarding flags as
used in the ControlParameters of the command interest.
|
boolean |
getTap()
Get the value of the "tap" flag.
|
void |
setActive(boolean active)
Set the value of the "active" flag
|
void |
setAdvertise(boolean advertise)
Set the value of the "advertise" flag
|
void |
setCapture(boolean capture)
Set the value of the "capture" flag
|
void |
setCaptureOk(boolean captureOk)
Set the value of the "captureOk" flag
|
void |
setChildInherit(boolean childInherit)
Set the value of the "childInherit" flag
|
void |
setForwardingEntryFlags(int forwardingEntryFlags)
Set the flags according to the bits in forwardingEntryFlags as used by the
ForwardingEntry message.
|
void |
setLast(boolean last)
Set the value of the "last" flag
|
void |
setLocal(boolean local)
Set the value of the "local" flag
|
void |
setNfdForwardingFlags(int nfdForwardingFlags)
Set the flags according to the NFD forwarding flags as used in the
ControlParameters of the command interest.
|
void |
setTap(boolean tap)
Set the value of the "tap" flag
|
public ForwardingFlags()
public ForwardingFlags(ForwardingFlags forwardingFlags)
forwardingFlags - The ForwardingFlags to copy.public final boolean getActive()
public final boolean getChildInherit()
public final boolean getAdvertise()
public final boolean getLast()
public final boolean getCapture()
public final boolean getLocal()
public final boolean getTap()
public final boolean getCaptureOk()
public final void setActive(boolean active)
active - true to set the flag, false to clear it.public final void setChildInherit(boolean childInherit)
childInherit - true to set the flag, false to clear it.public final void setAdvertise(boolean advertise)
advertise - true to set the flag, false to clear it.public final void setLast(boolean last)
last - true to set the flag, false to clear it.public final void setCapture(boolean capture)
capture - true to set the flag, false to clear it.public final void setLocal(boolean local)
local - true to set the flag, false to clear it.public final void setTap(boolean tap)
tap - true to set the flag, false to clear it.public final void setCaptureOk(boolean captureOk)
captureOk - true to set the flag, false to clear it.public final int getForwardingEntryFlags()
public final void setForwardingEntryFlags(int forwardingEntryFlags)
forwardingEntryFlags - An integer with the bits set.public final int getNfdForwardingFlags()
public final void setNfdForwardingFlags(int nfdForwardingFlags)
nfdForwardingFlags - An integer with the bits set.Copyright © 2015. All rights reserved.