AutomataThread

public class AutomataThread extends AsyncTask<Void, Void, Void> implements AutomataMoneyCalculator

Поток для работы автоматов

Fields

context

Context context

storage

Storage storage

Constructors

AutomataThread

AutomataThread(StateStorage storage, Context context)

Methods

calculateMoney

public BigInteger calculateMoney(BigInteger timeDifference)

doInBackground

protected Void doInBackground(Void... turningOn)

getMoneyPerTimeUnit

BigInteger getMoneyPerTimeUnit()

onProgressUpdate

protected void onProgressUpdate(Void... voids)