CSlotType
A slot type is implemented as a class that holds other data besides the type.
Each type has a numeric ID (or ordinal value):
public int getId();
A name and a type string is kept ready for the tool support.
public String getName();
public String getTypeString();
A flag indicates whether data in the type is transportable or only available locally in a node.
public boolean isStorable()
Notes
CSlotType supports the equals() and hashCode() methods.
Available slot types
Predefined slot types are summarized in the CCommonSlotType class.
The following slot types are available:
| ID | Name | Java Type | Is storable/streamable |
|---|---|---|---|
| 0 | EMPTY | false | |
| 1 | BYTE | byte | true |
| 2 | BYTE_ARRAY | byte[] | true |
| 3 | CHAR | char | true |
| 4 | CHAR_ARRAY | char[] | true |
| 5 | BOOLEAN | boolean | true |
| 6 | BOOLEAN_ARRAY | boolean[] | true |
| 7 | SHORT | short | true |
| 8 | SHORT_ARRAY | short[] | true |
| 9 | LONG | long | true |
| 10 | LONG_ARRAY | long[] | true |
| 11 | INT | int | true |
| 12 | INT_ARRAY | int[] | true |
| 13 | FLOAT | float | true |
| 14 | FLOAT_ARRAY | float[] | true |
| 15 | DOUBLE | double | true |
| 16 | DOUBLE_ARRAY | double[] | true |
| 17 | STRING | String | true |
| 18 | STRING_ARRAY | String[] | true |
| 19 | TARGET_ADDRESS | CTargetAddress | true |
| 20 | TARGET_ADDRESS_ARRAY | CTargetAddress[] | true |
| 21 | RECORD | CRecord | true |
| 22 | RECORD_ARRAY | CRecord[] | true |
| 24 | UUID | UUID | true |
| 25 | UUID_ARRAY | UUID[] | true |
| 26 | OBJECT | Object | false |
| 27 | ID | IId | true |
| 28 | ID_ARRAY | IId[] | true |
| 29 | COLOR | Color | true |
| 30 | NODE_ID | CNodeId | true |
| 31 | NODE_ID_ARRAY | CNodeId[] | true |
| 34 | MESSAGE | CMessage | true |
| 35 | BITFIELD | CBitField | true |
| 36 | HASH | IDigest | true |
| 37 | HASH_ARRAY | IDigest[] | true |
| 38 | STRING_PROPERTY | CStringProperty | true |
| 39 | STRING_PROPERTIES | CStringProperties | true |
| 40 | UTC_TIMESTAMP | LocalDateTime | true |
| 42 | LOCAL_DATE | LocalDate | true |
| 43 | LOCAL_DATE_TIME | LocalDateTime | true |
| 44 | ZONED_DATE_TIME | ZonedDateTime | true |
| 45 | WIDGET_SET_ID | CWidgetSetId | true |
| 46 | WIDGET_ID | CWidgetId | true |
| 47 | INSTANT | Instant | true |
| 48 | INSTANT_ARRAY | Instant[] | true |
| 49 | NODE_ADDRESS | CNodeAddress | true |
| 50 | NODE_ADDRESS_ARRAY | CNodeAddress[] | true |
| 51 | SEGMENT_ID | CSegmentId | true |
| 52 | SEGMENT_ID_ARRAY | CSegmentId[] | true |
Related Pages
CRecord
The CRecord is the payload container for NYSSR messages, holding the unique message ID (IId) and the data as a map of key-value slots. It provides utilities for I/O streaming, slot management, and typ
ISlotFactory
The ISlotFactory service is responsible for creating and managing ISlot objects in NYSSR messages, providing methods for slot creation, I/O serialization (DataStream and JSON), and extensibility for c
CMessage
CMessage is the primary container class for all NYSSR messages, consisting of the CEnvelope (header/addressing) and the CRecord (payload). It provides constructors and methods for seamless I/O streami
ISlot
The ISlot interface is the component within a NYSSR message record that holds a data value and its type, formatting the data for seamless, factory-driven transport via DataStreams or JSON.
ISingleSlotTypeFactory
The ISingleSlotTypeFactory interface is the contract for creating a specific custom ISlot type in NYSSR, providing the core logic to transform a Java object, a DataStream, or a JSON element into a tra
IGeneratedRecord
IGeneratedRecord is an empty marker interface used exclusively by auto-generated record classes in NYSSR for system identification and type hinting.