CornellTech-Unity-project  1.0
Public Member Functions | Public Attributes | List of all members
Cyan.DataCollection Class Reference

Attached to player, collects player data every second and when instructed, data is compiled into json format More...

Inherits MonoBehaviour.

Public Member Functions

IEnumerator DataCollector ()
 Coroutine for data collection at specified interval Data Collected: Player coordinates/rotations/action state/object being interacted with/objects position/rotation - all collected with delegate More...
 
void SceneJumpRecord (Scene scene, LoadSceneMode mode)
 Adds scene changes with timestamp to sceneSwitches Dictionary More...
 
string GetData ()
 
void SendData ()
 Stops all coroutines, compiles the data that has been collecting into json formation and sends an external call to the browser with the final data in JSON. More...
 
void BrowserToC ()
 ACCESS THIS FUNCTION FROM BROWSER. More...
 

Public Attributes

Camera playerCamera
 
IList< float > sceneSwitches = new List<float>()
 

Detailed Description

Attached to player, collects player data every second and when instructed, data is compiled into json format

Member Function Documentation

void Cyan.DataCollection.BrowserToC ( )

ACCESS THIS FUNCTION FROM BROWSER.

Calls the sendData Function.

IEnumerator Cyan.DataCollection.DataCollector ( )

Coroutine for data collection at specified interval Data Collected: Player coordinates/rotations/action state/object being interacted with/objects position/rotation - all collected with delegate

Returns
Appends to 6 data lists and also adds to recording time
string Cyan.DataCollection.GetData ( )
void Cyan.DataCollection.SceneJumpRecord ( Scene  scene,
LoadSceneMode  mode 
)

Adds scene changes with timestamp to sceneSwitches Dictionary

Parameters
scene
loadSceneModeidk
void Cyan.DataCollection.SendData ( )

Stops all coroutines, compiles the data that has been collecting into json formation and sends an external call to the browser with the final data in JSON.

Member Data Documentation

Camera Cyan.DataCollection.playerCamera
IList<float> Cyan.DataCollection.sceneSwitches = new List<float>()

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