C# Class TSystems.RELOAD.Usage.DisCoRegistration

This class implements the RELOAD Usage for Distributed Conferencing (DisCo)
Inheritance: IUsage
Show file Open project: RELOAD-NET/RELOAD.NET Class Usage Examples

Public Methods

Method Description
AppProcedure ( MessageTransport transport, List kindRes ) : void
Create ( int type ) : IUsage

Creates new instances of DisCoRegistration

DataModel ( ) : ReloadGlobals.DataModel
DisCoRegistration ( UsageManager manager ) : System

This contructor should be taken if you want to create a DisCoRegistration from wire.

DisCoRegistration ( string resName, string coordinate, NodeId nodeId, UsageManager manager ) : System

This constructor instanciates a DisCoRegistration containing the Destination List towards the focus and its coordinate value.

Encapsulate ( System.Boolean exists ) : StoredDataValue
Equals ( object obj ) : bool

Compares if two DisCoRegistration are equal.

FromReader ( ReloadMessage rm, BinaryReader reader, long usage_size ) : IUsage

Deserializes a DisCoRegistration from byte stream.

Report ( ) : string
dump ( BinaryWriter writer ) : UInt32

Serialzes a DisCoRegistration to wire.

Method Details

AppProcedure() public method

public AppProcedure ( MessageTransport transport, List kindRes ) : void
transport TSystems.RELOAD.Transport.MessageTransport
kindRes List
return void

Create() public method

Creates new instances of DisCoRegistration
public Create ( int type ) : IUsage
type int Not used, set it -1 for example
return IUsage

DataModel() public method

public DataModel ( ) : ReloadGlobals.DataModel
return ReloadGlobals.DataModel

DisCoRegistration() public method

This contructor should be taken if you want to create a DisCoRegistration from wire.
public DisCoRegistration ( UsageManager manager ) : System
manager UsageManager
return System

DisCoRegistration() public method

This constructor instanciates a DisCoRegistration containing the Destination List towards the focus and its coordinate value.
public DisCoRegistration ( string resName, string coordinate, NodeId nodeId, UsageManager manager ) : System
resName string
coordinate string The focus' relative position in the network.
nodeId TSystems.RELOAD.Utils.NodeId
manager UsageManager
return System

Encapsulate() public method

public Encapsulate ( System.Boolean exists ) : StoredDataValue
exists System.Boolean
return TSystems.RELOAD.Storage.StoredDataValue

Equals() public method

Compares if two DisCoRegistration are equal.
public Equals ( object obj ) : bool
obj object DisCoRegistration to compare.
return bool

FromReader() public method

Deserializes a DisCoRegistration from byte stream.
public FromReader ( ReloadMessage rm, BinaryReader reader, long usage_size ) : IUsage
rm TSystems.RELOAD.Transport.ReloadMessage Not used.
reader System.IO.BinaryReader /// The binary reader containing the entire RELOAD message
usage_size long Not used. DisCoReg has fixed length
return IUsage

Report() public method

public Report ( ) : string
return string

dump() public method

Serialzes a DisCoRegistration to wire.
public dump ( BinaryWriter writer ) : UInt32
writer System.IO.BinaryWriter A BinaryWriter containing the entire byte /// stream
return System.UInt32