Attribute

abstract class Attribute

A structure that represents an SVS object's semantic definition. An SVS object is composed of a set of attributes. Each attribute is defined by its type (signed int, unsigned int and string), its value and its numerical code. An attribute code must be used as a definition of attribute's 'meaning' : Two attributes with same code have same signification. For example, a code may be reserved for defining objects' names. Note: Within a same object's class, attributes codes and types are related : two attributes of same code must have same type !

Inheritors

Properties

Link copied to clipboard
val FLOAT: Byte = 4
Link copied to clipboard
val KEY: Byte = 0
Link copied to clipboard
val LABEL: Byte = 1
Link copied to clipboard
val META: Byte = 6
Link copied to clipboard
val SIGNED: Byte = 2
Link copied to clipboard
val STRING: Byte = 5
Link copied to clipboard
val TYPE_MAX: Byte = 6
Link copied to clipboard
val TYPE_MIN: Byte = 0
Link copied to clipboard
val UINT16_MAX: Int = 65535
Link copied to clipboard
val UNSIGNED: Byte = 3

Functions

Link copied to clipboard
open fun getCode(): Int
Returns the attribute's code.
Link copied to clipboard
open fun getType(): Byte
Returns the attribute's type.
Link copied to clipboard
@NotNull
open fun toString(): @NotNull String
Returns a String representing the attribute's information (code and type).