ait.dsn.cfdp.machines.machine module

class ait.dsn.cfdp.machines.machine.ID(length, value)

Bases: object

CFDP entity ID. Unsigned binary integer Entity ID length is 3 bits, value can be up to 8 octets (bytes) long Entity ID is packed in PDUs by octet length less 1 (e.g. 0 for 1 octet length)

property length
property value
class ait.dsn.cfdp.machines.machine.Machine(cfdp, transaction_id, *args, **kwargs)

Bases: object

S1 = 'SEND_METADATA'
S2 = 'SEND_FILEDATA'
abandon()
cancel()

Cancel self

fault_handler(condition_code, *args, **kwargs)

Default fault handler, which is just to log a message Fault type is primitive type ConditionCode

finish_transaction()

Closes out a transaction. Sends the appropriate Indication and resets instance variables

notify_partner_of_cancel()

Ask partner to cancel and then shutdown

role = 'UNDEFINED'
shutdown()
suspend()
update_state(event=None, pdu=None, request=None)

Evaluate a state change on received input :param event: :param pdu: :param request: :return:

class ait.dsn.cfdp.machines.machine.Transaction(entity_id, transaction_id)

Bases: object