def __init__(self, negative, vocabulary, memory, value, index): """Constructor of VariableReadingToken: @type index: integer @param index: the current reading index in the read value. """ AbstractVariableProcessingToken.__init__(self, negative, vocabulary, memory, value) self.index = index
def __init__(self, negative, vocabulary, memory, value, generationStrategy): """Constructor of VariableWritingToken: @type value: bitarray @param value: the current written value in binary format. @type generationStrategy: string @param generationStrategy: the strategy that all generation of value for this variable will follow. """ AbstractVariableProcessingToken.__init__(self, negative, vocabulary, memory, value) self.generationStrategy = generationStrategy self.index = len(value)