ProdRouteOverlapCalc Class [AX 2012]

The ProdRouteOverlapCalc class is used to calculate an overlap quantity for the production operation.

class ProdRouteOverlapCalc

Run On

Called

  MethodDescription
Gg840013.pubmethod(en-us,AX.60).gif calcOverlap Performs the calculation of the overlap quantity.
Gg840013.pubmethod(en-us,AX.60).gif calcProc Creates an estimate of the operation process time.
Gg840013.pubmethod(en-us,AX.60).gif calcQty Creates an estimate of the operation process quantity.
Gg840013.pubmethod(en-us,AX.60).gif calcSetUp Creates an estimate of the operation setup time.
Gg840013.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif getCalcOverlapQty
Gg840013.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif init
Gg840013.pubmethod(en-us,AX.60).gif new Initializes a new instance of the ProdRouteOverlapCalc class.
Gg840013.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif parmBOMCalcData Gets or sets the value of BOMCalcData.
Gg840013.pubmethod(en-us,AX.60).gif parmConfigId Gets or sets the ConfigId parameter.
Gg840013.pubmethod(en-us,AX.60).gif parmInfoCalcValue Gets or sets the InfoCalcValue parameter.
Gg840013.pubmethod(en-us,AX.60).gif parmInfoValueChanged Gets or sets the InfoValueChanged parameter.
Gg840013.pubmethod(en-us,AX.60).gif parmItemId Gets or sets the ItemId parameter.
Gg840013.pubmethod(en-us,AX.60).gif parmRouteMap Gets or sets the RouteMap parameter.
Gg840013.pubmethod(en-us,AX.60).gif parmRouteOprMap Gets or sets the RouteOprMap parameter.
Gg840013.pubmethod(en-us,AX.60).gif parmUpdateProdRoute Gets or sets the UpdateProdRoute parameter.
Gg840013.pubmethod(en-us,AX.60).gif run Runs a calculation and updates the operation with a new overlap value.
Gg840013.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif validate Validates whether the data is correct and that the calculation can be done in the correct way.
Gg840013.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg840013.pubmethod(en-us,AX.60).gif Gg840013.static(en-us,AX.60).gif ::construct Initializes a new instance of the ProdRouteOverlapCalc class.
Gg840013.pubmethod(en-us,AX.60).gif Gg840013.static(en-us,AX.60).gif ::description Gets the description of the class.
Gg840013.pubmethod(en-us,AX.60).gif Gg840013.static(en-us,AX.60).gif ::main Provides an entry point for the ProdRouteOverlapCalc class when it is called from a menu item.
Gg840013.pubmethod(en-us,AX.60).gif Gg840013.static(en-us,AX.60).gif ::newProdRoute
Gg840013.pubmethod(en-us,AX.60).gif Gg840013.static(en-us,AX.60).gif ::newProdRouteBOMData
Gg840013.pubmethod(en-us,AX.60).gif Gg840013.static(en-us,AX.60).gif ::newRouteMapBOMData
Top

The calculated overlap quantity is a minimal available one for the production operation.

static void updateOperationWithMinimalOverlap(ProdRoute _prodRoute) 
{ 
    ProdRouteOverlapCalc prodRouteOverlapCalc; 
 
    ttsbegin; 
    if(!_prodRoute.RecId) 
        throw error("@SYS18447"); 
         
    // Show the info message when an old overlap quantity is replaced  
    // by new overlap quantity on the operation. 
    prodRouteOverlapCalc =  
        prodRouteOverlapCalc::newProdRoute(_prodRoute, false, true); 
  
    // Run calculation 
    prodRouteOverlapCalc.run(); 
    ttscommit; 
}

Object Class
  ProdRouteOverlapCalc Class

Community Additions

ADD
Show: