Module ImportFrom alias alias alias alias alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Expr Str Import alias Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults Num Num body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str decorator_list Call NameLoad ListLoad Str Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr NameLoad Str handlers ExceptHandler body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad decorator_list Call NameLoad ListLoad Str ListLoad Call NameLoad Lambda arguments args NameParam NameParam defaults UnaryOpNot AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad keyword TupleLoad Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad ListLoad ListLoad Str Str Call NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad keyword TupleLoad NameLoad decorator_list Call NameLoad ListLoad ListLoad Str Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd AttributeLoad NameLoad attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad SubscriptLoad NameLoad Index Str attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad keyword TupleLoad Call NameLoad AttributeLoad NameLoad attr decorator_list Call NameLoad ListLoad ListLoad Str Str Call NameLoad Lambda arguments args NameParam defaults BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore TupleLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore ListLoad Str Assign NameStore ListLoad Dict Str Str Dict Str Str Dict Str Str ListLoad Str ListLoad Num Dict Str Str Dict Str Call NameLoad Str Dict Str ListLoad Str Str Str Str Dict Str Dict Str ListLoad Str Str Str Str Dict Str Dict Str Str ListLoad Str Str ListLoad Num decorator_list
N/A calvin.actor.actor Actor ActionResult manage condition guard calvin.runtime.north.calvin_token EOSToken ExceptionToken absolute_filename N/A N/A filename N/A N/A N/A Test helper - get absolute name of file N/A os.path N/A N/A N/A N/A os path join N/A N/A N/A os path dirname __file__ filename N/A FileReader2 N/A Actor N/A N/A 
    Read a file line by line, and send each line as a token on output port.

    When there is no more data to be read, an EOS token is sent
    and a status_OK value is sent on the 'ses' (stream end status) port.
    If the file doesn't exist, an EOS token is sent
    and a status_ERR value is sent on the 'ses' (stream end status) port.
    The values for status_OK and status_ERR defaults to 0 and 1, respectively,
    but can be set per instance by passing the desired values as parameters.

    Inputs:
      filename : File to read. If file doesn't exist, an ExceptionToken is produced
    Outputs:
      out : Each token is a line of text, or EOSToken.
      ses : Stream End Status
     init N/A N/A self status_OK status_ERR N/A 0 1 N/A N/A N/A self status_OK status_OK N/A N/A self status_ERR status_ERR N/A N/A self file_not_found False N/A N/A self file None N/A N/A N/A self use calvinsys.io.filehandler shorthand file N/A N/A manage N/A status_OK status_ERR open_file N/A N/A self filename N/A N/A N/A N/A N/A N/A self file N/A N/A N/A self N/A file open filename r N/A N/A N/A N/A N/A self file None N/A N/A self file_not_found True N/A N/A ActionResult N/A N/A condition N/A filename N/A N/A guard N/A N/A N/A self filename N/A N/A N/A self file file_not_found N/A N/A self N/A N/A N/A N/A self file_not_found False N/A N/A ActionResult production N/A N/A EOSToken N/A self status_ERR N/A N/A condition N/A N/A out ses N/A guard N/A N/A N/A self N/A N/A self file_not_found readline N/A N/A self N/A N/A N/A line N/A N/A N/A self file read_line N/A N/A ActionResult production N/A line N/A N/A condition N/A N/A out N/A guard N/A N/A N/A self N/A N/A N/A self file N/A N/A N/A N/A self file eof N/A N/A N/A self file has_data eof N/A N/A self N/A N/A N/A N/A N/A N/A self N/A file close N/A self file N/A N/A self file None N/A N/A ActionResult production N/A N/A EOSToken N/A self status_OK N/A N/A condition N/A N/A out ses N/A guard N/A N/A N/A self N/A N/A N/A self file N/A N/A N/A self file eof N/A action_priority N/A readline eof open_file file_not_found N/A requires N/A calvinsys.io.filehandler N/A test_set N/A N/A in out N/A filename no such file N/A out ses N/A End of stream N/A 1 N/A in out N/A filename N/A absolute_filename data.txt N/A out N/A A B C D N/A out N/A out N/A E F G H N/A out N/A out ses N/A I End of stream N/A 0 N/A