EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.RoboticData Class Reference

Class to store a collection of robotic data. Contains function to serialize and deserialize to json string. More...

Inherits EnableSerializableValue.

Public Member Functions

 RoboticData ()
 Constructor.
 
void SetData (string name, float value, float settime=-1f)
 Sets the data value for a given name in the RoboticData object.
 
string JSONString ()
 Returns a JSON string representation of the current RoboticData object.
 
string Serialize ()
 Serializes the RoboticData object into a JSON string.
 
object Deserialize (string json)
 Deserialize the given JSON string into a RoboticData object.
 
override bool Equals (object obj)
 Determines whether the current RoboticData object is equal to another object.
 

Public Attributes

Dictionary< string, RoboticDatumdata
 Represents a collection of robotic data in the Enablegames namespace.
 
float time
 Represents the time when the values in the class is last changed.
 
bool moving = false
 Represents whether the robotic data is moving or not.
 

Detailed Description

Class to store a collection of robotic data. Contains function to serialize and deserialize to json string.

Member Function Documentation

◆ Deserialize()

object Enablegames.RoboticData.Deserialize ( string json)
inline

Deserialize the given JSON string into a RoboticData object.

Parameters
jsonThe JSON string to deserialize.
Returns
A deserialized RoboticData object.

◆ Equals()

override bool Enablegames.RoboticData.Equals ( object obj)
inline

Determines whether the current RoboticData object is equal to another object.

Parameters
objThe object to compare with the current object.
Returns
true if the current object is equal to the other object; otherwise, false.
Here is the call graph for this function:

◆ JSONString()

string Enablegames.RoboticData.JSONString ( )
inline

Returns a JSON string representation of the current RoboticData object.

Returns
A string that represents the serialized RoboticData object as a JSON string.
Here is the caller graph for this function:

◆ Serialize()

string Enablegames.RoboticData.Serialize ( )
inline

Serializes the RoboticData object into a JSON string.

Returns
A JSON string representation of the RoboticData object.

◆ SetData()

void Enablegames.RoboticData.SetData ( string name,
float value,
float settime = -1f )
inline

Sets the data value for a given name in the RoboticData object.

Parameters
nameThe name of the data value.
valueThe value to set for the data.
settimeThe time at which the data is set. Default value is -1f.
Here is the call graph for this function:

The documentation for this class was generated from the following file: