Class RequestAnswer
java.lang.Object
desmoj.core.simulator.NamedObject
desmoj.core.simulator.ModelComponent
desmoj.core.simulator.Schedulable
desmoj.core.simulator.Entity
cambio.simulator.entities.NamedEntity
cambio.simulator.entities.networking.Request
cambio.simulator.entities.networking.RequestAnswer
Wrapper class to ease responding to
Requests.
Represents the answering of a Request.
- Author:
- Lion Wagner
-
Field Summary
Fields inherited from class desmoj.core.simulator.Schedulable
_schedule -
Constructor Summary
ConstructorsConstructorDescriptionRequestAnswer(Request wrappedRequest, MicroserviceInstance answerSender) Constructs a newRequestAnswer. -
Method Summary
Modifier and TypeMethodDescriptionunpack()Unpack the original Request that is answered by this Request.Methods inherited from class cambio.simulator.entities.networking.Request
addUpdateListener, areDependenciesCompleted, cancelExecutionAtHandler, cancelSending, getComputeTime, getDependencies, getDependencyWaitTime, getHandler, getParent, getRelatedDependency, getRequester, getResponseTime, getTimestampReceived, getTimestampSend, getUpdateListeners, hasParent, isCompleted, isComputationCompleted, isDependenciesCompleted, notifyDependencyHasFinished, onCompletion, onComputationComplete, onDependenciesComplete, onReceive, resetSendTimeStamps, setCanceledEvent, setComputationCompleted, setHandler, setReceiveEvent, setSendEvent, stampReceived, stampReceivedAtHandler, stampSendoffMethods inherited from class cambio.simulator.entities.NamedEntity
getPlainName, getQuotedName, getQuotedPlainName, renameMethods inherited from class desmoj.core.simulator.Entity
clone, generateTraceForScheduling, getIdentNumber, getQueueingPriority, getQueues, getScheduledEvents, isEqual, isLarger, isLargerOrEqual, isNotEqual, isQueued, isSimProcess, isSmaller, isSmallerOrEqual, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, schedule, scheduleAfter, scheduleAfter, scheduleAfter, scheduleBefore, scheduleBefore, scheduleBefore, schedulePreempt, schedulePreempt, schedulePreempt, setQueueingPriorityMethods inherited from class desmoj.core.simulator.Schedulable
assignReporter, cancel, getCorrespondingReportable, isCurrent, isScheduled, reSchedule, reSchedule, reSchedulePreempt, scheduledNext, setCorrespondingReportableMethods inherited from class desmoj.core.simulator.ModelComponent
current, currentEntity, currentEntityAll, currentEvent, currentlySendDebugNotes, currentlySendTraceNotes, currentModel, currentSimProcess, debugIsOn, debugOff, debugOn, getModel, isExperimentCompatible, isModelCompatible, presentTime, sendDebugNote, sendMessage, sendTraceNote, sendWarning, skipTraceNote, skipTraceNote, traceIsOn, traceOff, traceOnMethods inherited from class desmoj.core.simulator.NamedObject
getName, toString
-
Constructor Details
-
RequestAnswer
Constructs a newRequestAnswer.- Parameters:
wrappedRequest-Requestto which this is an answer toanswerSender- sender of the answer
-
-
Method Details
-
getAnswerSender
-
unpack
Unpack the original Request that is answered by this Request.- Returns:
- the request, that is wrapped by this answer
-