|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.netsim.firewall.util.tables.TableEntry
public class TableEntry
| Field Summary | |
|---|---|
static int |
DEFAULTTIMEOUT
Default Timeout value for a connection. |
private String |
direction
In which direction the initial packet was going. |
private boolean |
reply
States if the connection has seen reply traffic |
private String |
stateValue
Describes in which state this Table Entry is in. |
private int |
timeout
Timeout value for this entry. |
| Constructor Summary | |
|---|---|
TableEntry(String state,
String direction)
Creates a new hash table entry. |
|
TableEntry(String state,
String direction,
int timeout)
Creates a new hash table entry with a given timeout. |
|
| Method Summary | |
|---|---|
void |
decrementTimeout(int time)
Method which decrements the timeout value by one. |
String |
getDirection()
|
String |
getStateValue()
Get the state of the connection. |
int |
getTimeout()
Get the timeout value. |
boolean |
isReply()
|
void |
setReply(boolean reply)
|
void |
setStateValue(String stateValue)
Set the state of the connection. |
void |
setTimeout(int timeout)
Set the timeout value. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULTTIMEOUT
private String stateValue
private int timeout
private boolean reply
private String direction
| Constructor Detail |
|---|
public TableEntry(String state,
String direction)
state - state of the connection.direction - In which direction the initial packet is going.
public TableEntry(String state,
String direction,
int timeout)
state - state of the connection.direction - In which direction the initial packet is going.timeout - for how long this entry is kept in the hashtable.| Method Detail |
|---|
public void decrementTimeout(int time)
time - Simulation time that has passed. Value by which the timeout should be subtracted by.public int getTimeout()
public void setTimeout(int timeout)
timeout - The timeout to set.public String getStateValue()
public void setStateValue(String stateValue)
stateValue - The stateValue to set.public boolean isReply()
public void setReply(boolean reply)
reply - The reply to set.public String toString()
toString in class ObjectObject.toString()public String getDirection()
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||