29 #define TIM_DUMP_VER_NUM 1
82 assert( (
int)pDelayTable[0] == i );
88 TableSize = (int)pDelayTable[1] * (
int)pDelayTable[2];
89 for ( k = 0; k < TableSize; k++ )
117 int nBoxes, nBoxIns, nBoxOuts, CopyBox;
118 int TableId, nTables, TableSize, TableX, TableY;
119 int i, k, curPi, curPo, iStr = 0;
134 assert( pMan->vBoxes == NULL );
140 for ( i = 0; i < nBoxes; i++ )
158 assert( pMan->vDelayTables == NULL );
162 for ( i = 0; i < nTables; i++ )
170 TableSize = TableX * TableY;
171 pDelayTable =
ABC_ALLOC(
float, TableSize + 3 );
172 pDelayTable[0] = TableId;
173 pDelayTable[1] = TableX;
174 pDelayTable[2] = TableY;
176 for ( k = 0; k < TableSize; k++ )
Tim_Man_t * Tim_ManLoad(Vec_Str_t *p, int fHieOnly)
int Tim_ManCoNum(Tim_Man_t *p)
static int Vec_StrGetI_ne(Vec_Str_t *vOut, int *pPos)
#define Tim_ManForEachTable(p, pTable, i)
#define Tim_ManForEachBox(p, pBox, i)
static float Vec_StrGetF(Vec_Str_t *vOut, int *pPos)
#define Tim_ManForEachPo(p, pObj, i)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
#define ABC_ALLOC(type, num)
int Tim_ManBoxOutputNum(Tim_Man_t *p, int iBox)
int Tim_ManBoxDelayTableId(Tim_Man_t *p, int iBox)
static Vec_Str_t * Vec_StrAlloc(int nCap)
static int Vec_PtrSize(Vec_Ptr_t *p)
int Tim_ManPiNum(Tim_Man_t *p)
void Tim_ManCreateBox(Tim_Man_t *p, int firstIn, int nIns, int firstOut, int nOuts, int iDelayTable)
ITERATORS ///.
void Tim_ManInitPoRequired(Tim_Man_t *p, int iPo, float Delay)
int Tim_ManDelayTableNum(Tim_Man_t *p)
static void Vec_StrPutI_ne(Vec_Str_t *vOut, int Val)
#define ABC_NAMESPACE_IMPL_END
int Tim_ManCiNum(Tim_Man_t *p)
void Tim_ManInitPiArrival(Tim_Man_t *p, int iPi, float Delay)
DECLARATIONS ///.
Tim_Man_t * Tim_ManStart(int nCis, int nCos)
DECLARATIONS ///.
Vec_Str_t * Tim_ManSave(Tim_Man_t *p, int fHieOnly)
FUNCTION DEFINITIONS ///.
int Tim_ManBoxNum(Tim_Man_t *p)
static void Vec_StrPutF(Vec_Str_t *vOut, float Val)
int Tim_ManBoxInputNum(Tim_Man_t *p, int iBox)
#define ABC_NAMESPACE_IMPL_START
static int Vec_StrSize(Vec_Str_t *p)
#define Tim_ManForEachPi(p, pObj, i)
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
int Tim_ManBoxCopy(Tim_Man_t *p, int iBox)
float Tim_ManGetCoRequired(Tim_Man_t *p, int iCo)
typedefABC_NAMESPACE_HEADER_START struct Tim_Man_t_ Tim_Man_t
INCLUDES ///.
float Tim_ManGetCiArrival(Tim_Man_t *p, int iCi)
typedefABC_NAMESPACE_HEADER_START struct Tim_Box_t_ Tim_Box_t
INCLUDES ///.
void Tim_ManBoxSetCopy(Tim_Man_t *p, int iBox, int iCopy)
int Tim_ManPoNum(Tim_Man_t *p)
#define TIM_DUMP_VER_NUM
DECLARATIONS ///.