![]() |
Safir SDK Core
|
Defines a number of characteristics that control how nodes of a certain type communicates. More...
#include </home/lars/safir/safir-sdk-core/src/safir_dou/gen/cpp/include/Safir/Dob/NodeType.h>
Static Public Attributes | |
static const Safir::Dob::Typesystem::TypeId | ClassTypeId = 5771540742031696125LL |
Type id for NodeType. | |
![]() | |
static const Safir::Dob::Typesystem::TypeId | ClassTypeId = 6050262633936372658LL |
Type id for Item. | |
![]() | |
static const Dob::Typesystem::TypeId | ClassTypeId = 5955188366590963785LL |
The TypeId of the Object class. | |
Defines a number of characteristics that control how nodes of a certain type communicates.
Used by Safir.Dob.NodeParameters.
Safir::Dob::NodeType::NodeType | ( | ) |
|
explicit |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Dob::NodeType::AckRequestThreshold | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Dob::NodeType::AckRequestThreshold | ( | ) | const |
Maximum number of outstanding messages before request receiver to ack.
Should never be more than half SlidingWindowsSize.
|
static |
|
overridevirtual |
Create a copy of the object.
Will create a copy of the object on the heap and return a smart pointer to it. Use std::static_pointer_cast or std::dynamic_pointer_cast to cast it to the pointer type that you're after.
Reimplemented from Safir::Dob::Item.
|
static |
|
overridevirtual |
Get a const reference to a member container from an object.
Use the methods in Members to get member indices and array sizes for use with this method.
Note: Do not use this method unless you're very sure it is the one you need!
member | [in] - The index of the member to get. |
index | [in] - The array index of the member to get. |
IllegalValueException | If the index is not in the range of the array. |
SoftwareViolationException | If the element is not an array and the index is not 0. |
Reimplemented from Safir::Dob::Item.
|
overridevirtual |
Get a reference to a member container from an object.
Use the methods in Members to get member indices and array sizes for use with this method.
Note: Do not use this method unless you're very sure it is the one you need!
member | [in] - The index of the member to get. |
index | [in] - The array index of the member to get. |
IllegalValueException | If the index is not in the range of the array. |
SoftwareViolationException | If the element is not an array and the index is not 0. |
Reimplemented from Safir::Dob::Item.
|
overridevirtual |
Get the type id of this object.
Gets the type id of the object. Method is virtual to ensure that the right value gets returned for pointers or references.
Reimplemented from Safir::Dob::Item.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Si64::SecondContainer > Safir::Dob::NodeType::HeartbeatInterval | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Si64::SecondContainer > Safir::Dob::NodeType::HeartbeatInterval | ( | ) | const |
How often shall heartbeats/keepalives be sent.
|
static |
|
overridevirtual |
Check if any member of this object is changed.
This method will recursively check if any member of the object has its change flag set.
Reimplemented from Safir::Dob::Item.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > Safir::Dob::NodeType::IsLightNode | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > Safir::Dob::NodeType::IsLightNode | ( | ) | const |
If true this node type is a light node.
See user's guide for more info about light nodes. This parameter has default value False. IsLightNode and RequiredForStart cannot both be True.
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > Safir::Dob::NodeType::KeepStateWhileDetached | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > Safir::Dob::NodeType::KeepStateWhileDetached | ( | ) | const |
If this value is set to True, all entities and registrations from other nodes are kept when a light node is getting detached.
When the light node attaches again to a system the state will be synced with the rest of the system. If this value is set to False, all entites and registrations from other nodes are automatically deleted when a light node is getting detached.
This value is mandatory if the node is a light node, i.e IsLightNode=True. If not a light node this value must not be set.
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Dob::NodeType::MaxLostHeartbeats | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Dob::NodeType::MaxLostHeartbeats | ( | ) | const |
How many lost heartbeats before marking nodes of this type as dead.
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeType::MulticastAddressControl | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeType::MulticastAddressControl | ( | ) | const |
Multicast address and port used for the control channel for nodes of this type.
An empty string or null for this or MulticastAddressData indicates that nodes of this type can't be reached via multicast.
|
static |
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeType::MulticastAddressData | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeType::MulticastAddressData | ( | ) | const |
Multicast address and port used for the control channel for nodes of this type.
An empty string or null for this or MulticastAddressControl indicates that nodes of this type can't be reached via multicast.
|
static |
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeType::Name | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::StringContainer > Safir::Dob::NodeType::Name | ( | ) | const |
Name of the node type.
|
static |
|
static |
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > Safir::Dob::NodeType::RequiredForStart | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::BooleanContainer > Safir::Dob::NodeType::RequiredForStart | ( | ) | const |
If true, a node of this type can start a system of its own.
A node with a node type where this parameter is set to false will never start a system of its own, it just waits for a system to join. This parameter is mandatory if node is not a light node, i.e IsLightNode=False. If this node is a light node, then RequiredForStart is optional but is not allowed to be True.
|
static |
Safir::Dob::Typesystem::Si64::SecondSequenceContainer & Safir::Dob::NodeType::RetryTimeout | ( | ) |
const Safir::Dob::Typesystem::Si64::SecondSequenceContainer & Safir::Dob::NodeType::RetryTimeout | ( | ) | const |
Time to wait for Ack before retrying transmission to this node.
First resend will use first timeout, second the second timeout and so on. Last one is used until the end.
|
static |
|
overridevirtual |
Recursively set change flags in all members of this object.
changed | [in] - The value to set the change flags to |
Reimplemented from Safir::Dob::Item.
Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Dob::NodeType::SlidingWindowsSize | ( | ) |
const Safir::Dob::Typesystem::ContainerProxy< Safir::Dob::Typesystem::Int32Container > Safir::Dob::NodeType::SlidingWindowsSize | ( | ) | const |
Size of the sliding window when communicating with this node.
Maximum allowed value is 20.
|
static |
|
overridevirtual |
Write the object to a blob.
handle | [in] - Handle to a blobWriter that is the destination of the serialized object. |
Reimplemented from Safir::Dob::Item.
|
static |
Type id for NodeType.