qsrlib_qsrs.qsr_qtc_simplified_abstractclass module

Created on Mon Jan 19 11:22:16 2015

@author: cdondrup

class qsrlib_qsrs.qsr_qtc_simplified_abstractclass.QSR_QTC_Simplified_Abstractclass[source]

Bases: qsrlib_qsrs.qsr_dyadic_abstractclass.QSR_Dyadic_Abstractclass

print “where,

” “it is always necessary to have two agents in every timestep: ” “x, y: the xy-coords of the agents ” “quantisation_factor: the minimum distance the agents must diverge from the double cross between two timesteps to be counted as movement. Must be in the same unit as the x,y coordinates. ” “validate: True|False validates the QTC sequence to not have illegal transitions. This inserts necessary transitional steps and messes with the timesteps.”

create_qtc_string(qtc)[source]
make_world_qsr_trace(world_trace, timestamps, qsr_params, req_params, **kwargs)[source]
qtc_to_output_format(qtc)[source]

Overwrite this for the different QTC variants to select only the parts from the QTCC tuple that you would like to return. Example for QTCB: return qtc[0:2]

Parameters:qtc – The full QTCC tuple [q1,q2,q4,q5]
Returns:The part of the tuple you would to have as a result using create_qtc_string
return_all_possible_state_combinations()[source]

Method that returns all possible state combinations for the qtc_type defined for this calss instance.

Returns:
  • String representation as a list of possible tuples
  • Integer representation as a list of lists of possible tuples
exception qsrlib_qsrs.qsr_qtc_simplified_abstractclass.QTCException[source]

Bases: exceptions.Exception