from builtins import object
from Core import Event
from Core import Machine
from Core import State


class EventData(object):
    __slots__ = 'state', 'event', 'machine', 'model', 'args', 'kwargs'

    def __init__(self, state: State, event: Event, machine: Machine, model:
        object):
        self.state = state
        self.event = event
        self.machine = machine
        self.model = model

    def update(self, model):
        self.state = self.machine.get_state(model.state)

913cdf75a06422c145d58ca5480ed705ff90fad8
<mask token>


class EventData(object):
    <mask token>

    def __init__(self, state: State, event: Event, machine: Machine, model:
        object):
        self.state = state
        self.event = event
        self.machine = machine
        self.model = model
    <mask token>

<mask token>


class EventData(object):
    <mask token>

    def __init__(self, state: State, event: Event, machine: Machine, model:
        object):
        self.state = state
        self.event = event
        self.machine = machine
        self.model = model

    def update(self, model):
        self.state = self.machine.get_state(model.state)

<mask token>


class EventData(object):
    __slots__ = 'state', 'event', 'machine', 'model', 'args', 'kwargs'

    def __init__(self, state: State, event: Event, machine: Machine, model:
        object):
        self.state = state
        self.event = event
        self.machine = machine
        self.model = model

    def update(self, model):
        self.state = self.machine.get_state(model.state)

from builtins import object
from Core import Event
from Core import Machine
from Core import State


class EventData(object):
    __slots__ = 'state', 'event', 'machine', 'model', 'args', 'kwargs'

    def __init__(self, state: State, event: Event, machine: Machine, model:
        object):
        self.state = state
        self.event = event
        self.machine = machine
        self.model = model

    def update(self, model):
        self.state = self.machine.get_state(model.state)
