1 package org.simantics.databoard.channel;
3 import org.simantics.databoard.binding.mutable.Variant;
4 import org.simantics.databoard.type.Datatype;
7 * This class carries a specification for a single command.
9 * @author Toni Kalajainen <toni.kalajainen@iki.fi>
11 public class CommandSpec {
13 /** Well-known id of the service */
14 public final Variant commandId;
16 /** Description of the request data. Typically a record type. */
17 public final Datatype requestType;
19 /** Description of the response data. Typically a record type. */
20 public final Datatype responseType;
22 /** Description of the error data. Typically a union type. */
23 public final Datatype errorType;
25 public CommandSpec(Variant commandId, Datatype requestType, Datatype responseType, Datatype errorType) {
26 this.commandId = commandId;
27 this.requestType = requestType;
28 this.responseType = responseType;
29 this.errorType = errorType;