Ejemplo n.º 1
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))->is_end_of_play ();
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 2
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))->is_probing_result_ok ();
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 3
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))->is_last_component (evt.handle_);
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 4
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState& source,
                 TargetState& target)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))->is_disabled_evt_required ();
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 5
0
    bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
    {
        bool rc = false;
        if (fsm.pp_ops_ && *(fsm.pp_ops_))
        {
            rc = (*(fsm.pp_ops_))->is_tunnel_altered (tunnel_id, evt.handle_, evt.port_, evt.index_);
        }

        G_GUARD_LOG (rc);
        return rc;
    }
Ejemplo n.º 6
0
    bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
    {
        bool rc = false;
        if (fsm.pp_ops_ && *(fsm.pp_ops_))
        {
            rc = (*(fsm.pp_ops_))->is_fatal_error (evt.error_);
        }

        G_GUARD_LOG (rc);
        return rc;
    }
Ejemplo n.º 7
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState& source,
                 TargetState& target)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))->is_destination_state (state_id);
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 8
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState& source,
                 TargetState& target)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))->last_op_succeeded ();
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 9
0
      bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
      {
        bool rc = false;
        if (fsm.pp_ops_ && *(fsm.pp_ops_))
        {
          rc = (expected_tunnel_id == tunnel_id);
        }

        G_GUARD_LOG (rc);
        return rc;
      }
Ejemplo n.º 10
0
      bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
      {
        bool rc = false;
        if (fsm.pp_ops_ && *(fsm.pp_ops_))
        {
          rc = (param_or_config_idx == evt.index_);
        }

        G_GUARD_LOG (rc);
        return rc;
      }
Ejemplo n.º 11
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState& source,
                 TargetState& target)
 {
   bool rc = false;
   if (fsm.pp_ops_ && *(fsm.pp_ops_))
   {
     rc = (*(fsm.pp_ops_))->is_component_state (handle_id, state_id);
   }
   G_GUARD_LOG (rc);
   return rc;
 }
Ejemplo n.º 12
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState& source,
                 TargetState& target)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         rc = (*(fsm.pp_ops_))
              ->is_port_enabling_complete (evt.handle_, evt.port_);
     }
     G_GUARD_LOG (rc);
     return rc;
 }
Ejemplo n.º 13
0
    bool operator()(EVT const& evt, FSM& fsm, SourceState&, TargetState&)
    {
        bool rc = false;
        if (fsm.pp_ops_ && *(fsm.pp_ops_))
        {
            // If the last operation didn't succeed, that will be fatal.
            rc = !(*(fsm.pp_ops_))->last_op_succeeded ();
        }

        G_GUARD_LOG (rc);
        return rc;
    }
Ejemplo n.º 14
0
 bool operator()(EVT const& evt, FSM& fsm, SourceState& source,
                 TargetState& target)
 {
     bool rc = false;
     if (fsm.pp_ops_ && *(fsm.pp_ops_))
     {
         if ((*(fsm.pp_ops_))->is_trans_complete (evt.handle_, evt.state_))
         {
             TIZ_LOG (TIZ_PRIORITY_NOTICE,
                      "evt.state_ [%s] target state [%s]...",
                      tiz_state_to_str (evt.state_),
                      tiz_state_to_str (source.target_omx_state ()));
             assert (evt.state_ == source.target_omx_state ());
             rc = true;
         }
     }
     G_GUARD_LOG (rc);
     return rc;
 }