O - The operation type.Req - The request type (corresponding to the operation type).Rep - The reply type (corresponding to the operation type).public interface SimEntityOperation<O extends SimEntityOperation,Req extends SimEntityOperation.Request,Rep extends SimEntityOperation.Reply>
SimEntity (or on multiple ones).Copyright (C) 2005-2017 Jan de Jongh, TNO
This file is covered by the LICENSE file in the root of this project.
SimEntity.getRegisteredOperations(),
SimEntity.doOperation(double, Req)| Modifier and Type | Interface and Description |
|---|---|
static interface |
SimEntityOperation.Reply<O extends SimEntityOperation,Req extends SimEntityOperation.Request,Rep extends SimEntityOperation.Reply>
A reply from a
SimEntityOperation. |
static interface |
SimEntityOperation.Request<O extends SimEntityOperation,Req extends SimEntityOperation.Request>
A request for a
SimEntityOperation. |
static class |
SimEntityOperation.RequestE<O extends SimEntityOperation,Req extends SimEntityOperation.Request>
A request for an operation that requires an entity argument.
|
static class |
SimEntityOperation.Reset
The (default) reset operation on a
SimEntity. |
static class |
SimEntityOperation.ResetReply
A reply for the reset operation
SimEntityOperation.Reset. |
static class |
SimEntityOperation.ResetRequest
A request for the reset operation
SimEntityOperation.Reset. |
static class |
SimEntityOperation.Update
The (default) update operation on a
SimEntity. |
static class |
SimEntityOperation.UpdateReply
A reply for the update operation
SimEntityOperation.Update. |
static class |
SimEntityOperation.UpdateRequest
A request for the update operation
SimEntityOperation.Update. |
| Modifier and Type | Method and Description |
|---|---|
Rep |
doOperation(double time,
Req request)
Performs the operation at given time with given request.
|
String |
getName()
Gets the name of this operation.
|
Class<Rep> |
getOperationReplyClass()
Gets the type of replies for this operation.
|
Class<Req> |
getOperationRequestClass()
Gets the type of requests for this operation.
|
String getName()
null and non-empty.Class<Req> getOperationRequestClass()
null.Class<Rep> getOperationReplyClass()
null.Rep doOperation(double time, Req request)
time - The time at which to perform the request.request - The request, non-null.null.IllegalArgumentException - If the entity or request is null, time is in the past,
the request is of illegal type, or its parameter values are illegal.Copyright © 2018. All rights reserved.