public abstract class AbstractReplaceableActivity extends AbstractActivity implements ReplaceableActivity
AbstractActivity
, added abstraction of
a ReplaceableActivity
, i.e. implementations may
replace another activity in addition to a mere extension.PROPERTY_ADD_FRAME_NUMBERS, PROPERTY_NEW_END_INSTANT, PROPERTY_NEW_START_INSTANT
source
Constructor and Description |
---|
AbstractReplaceableActivity(Object source)
Constructs a prototypical Event.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isReplaced() |
void |
replaceActivity(ReplaceableActivity activity) |
void |
setReplaced(boolean isReplaced)
Indicate, that this activity has been replaced.
|
addOptionalField, addPropertyChangeListener, addPropertyChangeListener, extendActivity, getActivityType, getCompoundFrameNumbers, getDescription, getDestinationAddressAsString, getEndInstant, getEndTimestamp, getOptionalFields, getSourceAddressAsString, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, removeReplacedActivity, setDescription, setDestinationAddress, setEndInstant, setExcludedFromOutput, setSourceAddress, setStartInstant, toString, writeCsvRecord
getSource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, getActivityType, getCompoundFrameNumbers, getDescription, getDestinationAddressAsString, getEndInstant, getEndTimestamp, getOptionalFields, getSourceAddressAsString, getStartInstant, getStartTimestamp, isExcludedFromOutput, removePropertyChangeListener, removePropertyChangeListener, setExcludedFromOutput
public AbstractReplaceableActivity(Object source)
source
- The object on which the Event initially occurred.IllegalArgumentException
- if source is null.public boolean isReplaced()
isReplaced
in interface ReplaceableActivity
public void setReplaced(boolean isReplaced)
ReplaceableActivity
setReplaced
in interface ReplaceableActivity
isReplaced
- whether or not this activity will be replaced by the caller.public void replaceActivity(ReplaceableActivity activity)
Copyright © 2013–2015 Institute of networks and security. All rights reserved.