C# Class X13.Periphery.MsDevice

Inheritance: ITopicOwned, IMsGate
显示文件 Open project: X13home/X13.Host Class Usage Examples

Private Properties

Property Type Description
CalculateTopicId ushort
CheckAddr bool
Connect void
Disconnect void
GetTopicInfo TopicInfo
GetTopicInfo TopicInfo
GetTopicInfo TopicInfo
ITopicOwned void
MsDevice System
MsDevice System
NextMsgId ushort
Open void
OwnerChanged void
ProccessAcknoledge void
ProcessInPacket void
PublishTopic void
PublishWithPayload void
ReisePool void
ResetTimer void
Send void
SendIntern void
Serialize byte[]
SetValue void
Stat void
SyncMsgId void
TimeOut void

Public Methods

Method Description
AddNode ( MsDevice dev ) : void
Addr2If ( byte addr ) : string
ProcessInPacket ( IMsGate gate, byte addr, byte buf, int start, int end ) : void
RemoveNode ( MsDevice dev ) : void
SendGw ( MsDevice dev, MsMessage msg ) : void
SendGw ( byte addr, MsMessage msg ) : void
Stop ( ) : void
ToString ( ) : string

Private Methods

Method Description
CalculateTopicId ( string path ) : ushort
CheckAddr ( byte addr ) : bool
Connect ( MsConnect msg ) : void
Disconnect ( ushort duration ) : void
GetTopicInfo ( Topic tp, bool sendRegister = true ) : TopicInfo

Find or create TopicInfo by Topic

GetTopicInfo ( string path, bool sendRegister = true ) : TopicInfo
GetTopicInfo ( ushort topicId, TopicIdType topicIdType, bool sendRegister = true ) : TopicInfo
ITopicOwned ( Topic owner ) : void
MsDevice ( ) : System
MsDevice ( IMsGate gate, byte addr ) : System
NextMsgId ( ) : ushort
Open ( ) : void
OwnerChanged ( Topic topic, TopicChanged param ) : void
ProccessAcknoledge ( MsMessage rMsg ) : void
ProcessInPacket ( MsMessage msg ) : void
PublishTopic ( Topic topic, TopicChanged param ) : void
PublishWithPayload ( Topic t, byte payload ) : void
ReisePool ( object state ) : void
ResetTimer ( int period ) : void
Send ( MsMessage msg ) : void
SendIntern ( MsMessage msg ) : void
Serialize ( Topic t ) : byte[]
SetValue ( TopicInfo ti, byte msgData, bool retained ) : void
Stat ( bool send, MsMessageType t, bool dub = false ) : void
SyncMsgId ( ushort p ) : void
TimeOut ( object o ) : void

Method Details

AddNode() public method

public AddNode ( MsDevice dev ) : void
dev MsDevice
return void

Addr2If() public method

public Addr2If ( byte addr ) : string
addr byte
return string

ProcessInPacket() public static method

public static ProcessInPacket ( IMsGate gate, byte addr, byte buf, int start, int end ) : void
gate IMsGate
addr byte
buf byte
start int
end int
return void

RemoveNode() public method

public RemoveNode ( MsDevice dev ) : void
dev MsDevice
return void

SendGw() public method

public SendGw ( MsDevice dev, MsMessage msg ) : void
dev MsDevice
msg MsMessage
return void

SendGw() public method

public SendGw ( byte addr, MsMessage msg ) : void
addr byte
msg MsMessage
return void

Stop() public method

public Stop ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string