示例#1
0
 /**
  * @brief       自クラスの実態返信
  * @return      自クラスの実態
  */
 public static Exec2State getInstance()
 {
     if (exec2StateClassObj == null)
     {
         exec2StateClassObj = new Exec2State();      // 実態が無いときのみ生成
         stateName = "STATE_EXEC2";
     }
     return exec2StateClassObj;                      // 自クラスの実態を返信
 }
示例#2
0
 /**
  * @brief       自クラスの実態返信
  * @return      自クラスの実態
  */
 public static Exec2State getInstance()
 {
     if (exec2StateClassObj == null)
     {
         exec2StateClassObj = new Exec2State();      // 実態が無いときのみ生成
         stateName          = "STATE_EXEC2";
     }
     return(exec2StateClassObj);                      // 自クラスの実態を返信
 }
示例#3
0
 /**
  *  @brief  button2 Event処理
  *  @param[in]  IContext    処理用クラス
  *  @return     void
  */
 public void btn2EventProc(IContext context)
 {
     context.SetMainEvent("NO_EVENT");                // Event生成なし
     context.ChangeState(Exec2State.getInstance());   // 自分へ遷移
 }
示例#4
0
 /**
  *  @brief  button2 Event処理
  *  @param[in]  IContext    処理用クラス
  *  @return     void
  */
 public void btn2EventProc(IContext context)
 {
     context.SetMainEvent("NO_EVENT");                // Event生成なし
     context.ChangeState(Exec2State.getInstance());   // Exec2 へ遷移
     context.SetTimer1EnbOrDsb(true);                 // Timer1スタート
 }