Package kieker.analysis.behavior
Class UserSessionToBehaviorModelTransformation
java.lang.Object
teetime.framework.AbstractStage
teetime.framework.AbstractConsumerStage<I>
teetime.stage.basic.AbstractTransformation<UserSession,IGraph<INode,UserBehaviorEdge>>
kieker.analysis.behavior.UserSessionToBehaviorModelTransformation
- All Implemented Interfaces:
teetime.stage.basic.ITransformation<UserSession,IGraph<INode,UserBehaviorEdge>>
public class UserSessionToBehaviorModelTransformation extends teetime.stage.basic.AbstractTransformation<UserSession,IGraph<INode,UserBehaviorEdge>>
Converts User Sessions into
BehaviorModel
s.- Since:
- 2.0.0
- Author:
- Lars Jürgensen
-
Field Summary
-
Constructor Summary
Constructors Constructor Description UserSessionToBehaviorModelTransformation()
-
Method Summary
Modifier and Type Method Description void
addEdge(EntryCallEvent event, com.google.common.graph.MutableNetwork<INode,UserBehaviorEdge> model, INode source, INode target)
Adds an edge to a model, if the edge does not exist already.com.google.common.graph.MutableNetwork<INode,UserBehaviorEdge>
eventsToModel(java.util.List<EntryCallEvent> events)
Converts a list of events into a behavior model.protected void
execute(UserSession session)
Methods inherited from class teetime.framework.AbstractConsumerStage
createInputPort, execute, getInputPort
Methods inherited from class teetime.framework.AbstractStage
abort, addInputPortRemovedListener, addOutputPortRemovedListener, compareAndSetBeingExecuted, createInputPort, createInputPort, createInputPort, createOutputPort, createOutputPort, createOutputPort, createOutputPort, declareActive, declarePassive, executeByFramework, getCurrentState, getId, getInputPorts, getOutputPorts, getOwningThread, getTerminationStrategy, isActive, isBeingExecuted, isPaused, isProducer, isStateless, onSignal, onStarting, onTerminating, onValidating, removeDynamicPort, removeDynamicPort, setPaused, setStateless, shouldBeTerminated, signalAlreadyReceived, terminateStage, toString, workCompleted
-
Constructor Details
-
UserSessionToBehaviorModelTransformation
public UserSessionToBehaviorModelTransformation()
-
-
Method Details
-
execute
- Specified by:
execute
in classteetime.framework.AbstractConsumerStage<UserSession>
- Throws:
java.lang.Exception
-
eventsToModel
public com.google.common.graph.MutableNetwork<INode,UserBehaviorEdge> eventsToModel(java.util.List<EntryCallEvent> events)Converts a list of events into a behavior model.- Parameters:
events
- The list of events- Returns:
- The behavior model
-
addEdge
public void addEdge(EntryCallEvent event, com.google.common.graph.MutableNetwork<INode,UserBehaviorEdge> model, INode source, INode target)Adds an edge to a model, if the edge does not exist already.- Parameters:
event
-model
-source
-target
-
-