import { QAction } from "./qaction" ; import { QState } from "./qstate" ; export class QTransition { private QValue : number ; private readonly id : number ; private static transitionId : number = 0 ; constructor ( private from , private to , private action ) { this . QValue = 0 ; this . id = QTransition . transitionId ++ ; } get Q ( ) { return this . QValue ; } set Q ( qvalue ) { this . QValue = qvalue ; } get From ( ) { return this . from ; } get To ( ) { return this . to ; } get Action ( ) { return this . action ; } set To ( state ) { this . to = state ; } set From ( state ) { this . from = state ; } get Id ( ) : number { return this . id ; } }