// UnscheduledDowntime.h: interface for the CUnscheduledDowntime class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_UNSCHEDULEDDOWNTIME_H__2156ECC9_A89F_45E6_916E_0265F547D78D__INCLUDED_)
#define AFX_UNSCHEDULEDDOWNTIME_H__2156ECC9_A89F_45E6_916E_0265F547D78D__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "EquipState.h"

/*
   #ifdef   BUILD_MCCTRDLL
   #define      MCCTRDLLCLASS   __declspec(dllexport)
   #else
   #define      MCCTRDLLCLASS   __declspec(dllimport)
   #endif

   class MCCTRDLLCLASS CUnscheduledDowntime : public CEquipState*/
class CUnscheduledDowntime : public CEquipState
{
public:
//  default constructor
    CUnscheduledDowntime();

//  default destructor
    virtual ~CUnscheduledDowntime();

//  set all unscheduled downtime equipment state
    void SetEquipState(int iEvt, int iState);

//  get total unscheduled downtime equipment time
    LONGLONG GetTotalTime();

    enum
    {
        UNSCHEDULED_MAINT_DELAY,
        JAM,
        UNSCHEDULED_CHANGE_OF_CONSUMABLES_CHEMICALS,
        OUT_OF_SPEC_INPUT,
        UNSCHEDULED_FACILITIES_RELATED,
        MAX_UNSCHEDULED_EQUIP_STATE,
    };
};

#endif // !defined(AFX_UNSCHEDULEDDOWNTIME_H__2156ECC9_A89F_45E6_916E_0265F547D78D__INCLUDED_)
