C# Class TSystems.RELOAD.Usage.DisCoRegistration

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

Méthodes publiques

Méthode 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 méthode

public AppProcedure ( MessageTransport transport, List kindRes ) : void
transport TSystems.RELOAD.Transport.MessageTransport
kindRes List
Résultat void

Create() public méthode

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

DataModel() public méthode

public DataModel ( ) : ReloadGlobals.DataModel
Résultat ReloadGlobals.DataModel

DisCoRegistration() public méthode

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

DisCoRegistration() public méthode

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
Résultat System

Encapsulate() public méthode

public Encapsulate ( System.Boolean exists ) : StoredDataValue
exists System.Boolean
Résultat TSystems.RELOAD.Storage.StoredDataValue

Equals() public méthode

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

FromReader() public méthode

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
Résultat IUsage

Report() public méthode

public Report ( ) : string
Résultat string

dump() public méthode

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