initTEmployee: Initialize theoretical employee

initTEmployeeR Documentation

Initialize theoretical employee

Description

Initialize employee data and its working hours. This function can be applied only to theoretical employees. Theoretical employees represent the manpower requirement for a scheduled activity.

Usage

initTEmployee(
  theObject,
  ID,
  costCenter,
  equipment,
  OT = 0,
  calDays,
  mdtProb,
  spareFactor = 1,
  monthSched = NA
)

## S4 method for signature 'Employee'
initTEmployee(theObject, ID, costCenter, spareFactor = 1)

## S4 method for signature 'Staff'
initTEmployee(
  theObject,
  ID,
  costCenter,
  calDays,
  mdtProb,
  spareFactor = 1,
  monthSched = NA
)

## S4 method for signature 'Clerk'
initTEmployee(
  theObject,
  ID,
  costCenter,
  OT = 0,
  calDays,
  mdtProb,
  spareFactor = 1,
  monthSched = NA
)

## S4 method for signature 'OperationPersonnel'
initTEmployee(
  theObject,
  ID,
  costCenter,
  OT = 0,
  mdtProb,
  spareFactor = 1,
  monthSched = NA
)

## S4 method for signature 'Operator'
initTEmployee(
  theObject,
  ID,
  costCenter,
  equipment,
  OT = 0,
  mdtProb,
  spareFactor = 1,
  monthSched = NA
)

Arguments

theObject

Employee-class object

ID

character string representing the employee's unique identifier

costCenter

character string representing the cost center wherein the employee's man hour cost will be charged

equipment

character string representing the equipment type which the employee was given authority to operate

OT

integer value defining the budgeted overtime hours

calDays

a data.frame returned by getCalDays

mdtProb

a data.frame returned by getMDTProb

spareFactor

numeric value of greater than or equal to 1 used as man hours multiplier

monthSched

integer vector of length 12

This represents the number of days an activity is scheduled for each month. This argument is used only for ProductionPersonnel-class objects.

Value

Employee-class object

Functions

  • initTEmployee(Employee): Initialize ID, costCenter and spareFactor

  • initTEmployee(Staff): Initialize reg

  • initTEmployee(Clerk): Initialize reg and regOT

  • initTEmployee(OperationPersonnel): Initialize all man hour type using man day type probabilities

  • initTEmployee(Operator): Initialize equipment


basilrabi/mansched2 documentation built on May 19, 2023, 9:51 p.m.