OHyMoS.NET Class Library

OhInputFileInt クラス

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

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

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

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

public class OhInputFileInt : OhInputFile

解説

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

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

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

OhInputFileInt can be connected with OhReceiveInt, OhRelayInt, and OhOutputFileInt. OhInputFileInt 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 OhInputFileInt and redefine "makeDataPack(string)".

必要条件

名前空間: OhymosNet

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

参照

OhInputFileInt メンバ | OhymosNet 名前空間