use of ai.saiy.android.processing.Qubit in project Saiy-PS by brandall76.
the class CommandSpellLocal method setOutcomeParams.
/**
* Set the parameters to the {@link Outcome}
*
* @param ctx the application context
* @param sl the {@link SupportedLanguage}
* @param toSpell to word to spell
*/
private void setOutcomeParams(@NonNull final Context ctx, @NonNull final SupportedLanguage sl, @NonNull final String toSpell) {
if (DEBUG) {
MyLog.v(CLS_NAME, "spell: " + toSpell);
}
final Qubit qubit = new Qubit();
qubit.setSpellContent(toSpell);
outcome.setQubit(qubit);
final String separated = getSeparated(toSpell);
outcome.setUtterance(getResponseUtterance(ctx, sl, separated));
entangledPair.setToastContent(separated);
outcome.setEntangledPair(entangledPair);
outcome.setOutcome(Outcome.SUCCESS);
}
Aggregations