OHyMoS.NET Class Library

OhInputFileFloat クラス

ファイルからデータ値が float 型であるデータパックを読み取る入力端子を表すクラスです。 このクラスはOhInputFileを 継承しています。

The OhInputFileFloat class is a class of input port which reads in datapacks of type float from an input file and sends them. It extends OhInputFile class.

この型のすべてのメンバの一覧については、 OhInputFileFloat メンバを参照してください。

System.Object
   OhymosNet.OhObject
      OhymosNet.OhPort
         OhymosNet.OhSenderPort
            OhymosNet.OhSendPort
               OhymosNet.OhInputPort
                  OhymosNet.OhInputFile
                     OhymosNet.OhInputFileFloat

public class OhInputFileFloat : OhInputFile

解説

端子を接続するには、接続する各端子のデータ型が合っている必要があります。 したがって、OhInputFileFloatは

と接続することができます。

読み取るデータは1つのデータパックにつき1行ごとに書かれ、 下の例のように、スペースまたはタブで区切られているものとします。
2003 120 0.3 1.2 2.3 4.5
違う形式で読み取る場合には、このクラスを継承したクラスを作成し、 makeDataPack(string)を 再定義してください。

OhInputFileFloat can be connected with OhReceiveFloat, OhRelayFloat, and OhOutputFileFloat. OhInputFileFloat reads an input file using "simple data format for input and output."

"Simple data format for input and output" is a format in which ..... all the data items for a datapack should be written in one line, and data items should be separated with a number of spaces or tabs.
2003 120 0.3 1.2 2.3 4.5
.... If you need different format, please make a derived class of OhInputFileFloat and redefine "makeDataPack(string)".

必要条件

名前空間: OhymosNet

アセンブリ: OhymosNet (OhymosNet.dll 内)

参照

OhInputFileFloat メンバ | OhymosNet 名前空間