verinec.netsim.loggers.events
Class ConsumeEvent
java.lang.Object
org.jdom.Content
org.jdom.Element
verinec.netsim.loggers.events.EventDetail
verinec.netsim.loggers.events.ConsumeEvent
- All Implemented Interfaces:
- Serializable, Cloneable, Parent
public class ConsumeEvent
- extends EventDetail
A consume Event detail is at the end of the chain of events.
- Version:
- $Revision: 47 $
- Author:
- Dominik Jungo
- See Also:
- Serialized Form
|
Method Summary |
Event |
createSimEvent(Model model,
ILogger logger)
creates a schedulable Simulation event from a Logevent |
void |
initializeLabel(DrawPanel drawpanel)
Initializes the label (the animated object) |
protected void |
subanimate(int time,
int substep,
int myPhase,
int totalPhase)
animates a substep of the whole animation |
| Methods inherited from class org.jdom.Element |
addContent, addContent, addContent, addContent, addContent, addNamespaceDeclaration, clone, cloneContent, getAdditionalNamespaces, getAttribute, getAttribute, getAttributes, getAttributeValue, getAttributeValue, getAttributeValue, getAttributeValue, getChild, getChild, getChildren, getChildren, getChildren, getChildText, getChildText, getChildTextNormalize, getChildTextNormalize, getChildTextTrim, getChildTextTrim, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getName, getNamespace, getNamespace, getNamespacePrefix, getNamespaceURI, getQualifiedName, getText, getTextNormalize, getTextTrim, getValue, indexOf, isAncestor, isRootElement, removeAttribute, removeAttribute, removeAttribute, removeChild, removeChild, removeChildren, removeChildren, removeContent, removeContent, removeContent, removeContent, removeNamespaceDeclaration, setAttribute, setAttribute, setAttribute, setAttributes, setContent, setContent, setContent, setContent, setName, setNamespace, setText |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
ConsumeEvent
public ConsumeEvent(String type)
- Creates a new ConsumeEvent
- Parameters:
type - a type
ConsumeEvent
public ConsumeEvent()
- Creates a new ConsumeEvent
createSimEvent
public Event createSimEvent(Model model,
ILogger logger)
- Description copied from class:
EventDetail
- creates a schedulable Simulation event from a Logevent
- Specified by:
createSimEvent in class EventDetail
- Parameters:
model - a network modellogger - a log event
- Returns:
- a schedulable Simulation event
- See Also:
EventDetail.createSimEvent(Model,
ILogger)
initializeLabel
public void initializeLabel(DrawPanel drawpanel)
throws NetSimException
- Description copied from class:
EventDetail
- Initializes the label (the animated object)
- Specified by:
initializeLabel in class EventDetail
- Parameters:
drawpanel - the panel containing the label
- Throws:
NetSimException - if the label can't be set up- See Also:
EventDetail.initializeLabel(verinec.gui.core.DrawPanel)
subanimate
protected void subanimate(int time,
int substep,
int myPhase,
int totalPhase)
- Description copied from class:
EventDetail
- animates a substep of the whole animation
- Specified by:
subanimate in class EventDetail
- Parameters:
time - actual timesubstep - the n'th substep that is animatedmyPhase - the phase length that is animated in this substeptotalPhase - the complete phase length- See Also:
EventDetail.subanimate(int, int, int, int)