|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jdom.Content
org.jdom.Element
verinec.netsim.loggers.events.EventDetail
verinec.netsim.loggers.events.FirewallEvent
public class FirewallEvent
A Firewall Event
| Field Summary | |
|---|---|
private static String |
DEFAULTPOLICY
|
private static long |
serialVersionUID
|
private static String |
TRIGGEREDACTION
|
| Fields inherited from class verinec.netsim.loggers.events.EventDetail |
|---|
dHeight, dWidth, dx, dy, endX, endY, label, ownerPCNode, startX, startY |
| Fields inherited from class org.jdom.Element |
|---|
additionalNamespaces, name, namespace |
| Fields inherited from class org.jdom.Content |
|---|
parent |
| Constructor Summary | |
|---|---|
FirewallEvent()
Creates a new Firewall Event |
|
FirewallEvent(IPacketAction action,
PacketFilterChain chain)
Creates a Firewall Event with more detailed information. |
|
FirewallEvent(IPacketAction action,
PacketFilterChain chain,
PacketFilterRule rule)
Creates a Firewall Event with more detailed information. |
|
FirewallEvent(String type,
String rule)
Creates a new Firewall Event |
|
| Method Summary | |
|---|---|
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
String |
getID()
|
String |
getRule()
Gets the rule which caused the event |
void |
initializeLabel(DrawPanel drawpanel)
Initializes the label (the animated object) |
private void |
logAction(IPacketAction action,
PacketFilterChain chain)
Sets the action as element attributes. |
private void |
logRuleDetail(PacketFilterRule rule)
Logs the details of the rule which triggered an action. |
void |
setID(String id)
sets the id of this event |
void |
setRule(String rule)
Sets the rule which caused the event |
protected void |
subanimate(int time,
int substep,
int myPhase,
int totalPhase)
animates a substep of the whole animation |
| Methods inherited from class verinec.netsim.loggers.events.EventDetail |
|---|
animate, getType, initAnimation, isAnimationInitialized, setType, toString |
| Methods inherited from class org.jdom.Content |
|---|
detach, equals, getDocument, getParent, getParentElement, hashCode, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jdom.Parent |
|---|
getDocument, getParent |
| Field Detail |
|---|
private static final long serialVersionUID
private static final String DEFAULTPOLICY
private static final String TRIGGEREDACTION
| Constructor Detail |
|---|
public FirewallEvent(String type,
String rule)
type - a typerule - the rule which caused this event
public FirewallEvent(IPacketAction action,
PacketFilterChain chain)
action - The action to be logged.chain - From which chain the default-policy action originated from.
public FirewallEvent(IPacketAction action,
PacketFilterChain chain,
PacketFilterRule rule)
action - The action to be logged.chain - From which chain the default-policy action originated from.rule - The rule which triggered the action.public FirewallEvent()
| Method Detail |
|---|
private void logAction(IPacketAction action,
PacketFilterChain chain)
action - Action to log.chain - From which chain the action was triggered from.private void logRuleDetail(PacketFilterRule rule)
rule - The rule which triggered the action.public final String getRule()
public final void setRule(String rule)
rule - a rulepublic final void setID(String id)
id - the id of the eventpublic final String getID()
public Event createSimEvent(Model model,
ILogger logger)
EventDetail
createSimEvent in class EventDetailmodel - a network modellogger - a log event
EventDetail.createSimEvent(Model,
ILogger)
public void initializeLabel(DrawPanel drawpanel)
throws NetSimException
EventDetail
initializeLabel in class EventDetaildrawpanel - the panel containing the label
NetSimException - if the label can't be set upEventDetail.initializeLabel(verinec.gui.core.DrawPanel)
protected void subanimate(int time,
int substep,
int myPhase,
int totalPhase)
EventDetail
subanimate in class EventDetailtime - actual timesubstep - the n'th substep that is animatedmyPhase - the phase length that is animated in this substeptotalPhase - the complete phase lengthEventDetail.subanimate(int, int, int, int)
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||