recordEntity

Information

This element represent each of the entities that are created and flow through the system. It includes several variables that store all the information regarding the entity. These variables are updated during the simulation run.

The functions implemented to manage entities are:

  • NewEntity, returns a reference to a new entity with a unique serial number
  • Duplicate, duplicates an entity returning a reference to the copy. The copy has its Primary variable set to 0.
  • ECreate, allocates the memory needed to store an entity and returns a pointer to that memory.
  • EDelete, frees the memory for an entity and destroys it.
  • EGet, returns the value of one of the fields (variables) of the entity. Each field has a number that identifies it.
  • ESet, sets the value of one of the fields of an entity.
  • ERead, reads all the fields of an entity.
  • EUpdate, updates all the fields of an entity.

Components

TypeNameDefaultDescription
RealHoldCostRate
RealVACost
RealNVACost
RealWaitCost
RealTranCost
RealOtherCost
RealCreateTime
RealStartTime
RealVATime
RealNVATime
RealWaitTime
RealTranTime
RealOtherTime
IntegerNumber
IntegerSerialNumber
IntegerType
RealStation
RealCurrentStation
RealPlannedStation
RealSequence
RealJobStep
IntegerAttributes
IntegerPrimary