OHyMoS.NET Class Library

OhRelayPort.DataType プロパティ

中継するデータパックのデータ値の型を表す文字列を取得します。

Gets the string which shows the type of data packs which are treated by this OhRelayPort.

public abstract string DataType {get;}

解説

基底クラス OhSenderPort の抽象メソッドです。

この OhRelayPort でも抽象メソッドとしておきます。 OhRelayPort の派生クラスで中継データパック型を表す文字列を取得するように必ず定義して下さい。

例えば、中継データパック型が "double" 型である派生クラスでは、
 public String DataType { get {return "double";} } 
のように定義します。

接続時には、接続する端子とこの端子のデータパック型が一致することを確認します。

In derived classes of this class OhRelayPort, this funstion should be defined so that it returnts the datapack type string.

参照

OhRelayPort クラス | OhymosNet 名前空間