DELPPRSystemItf Interface DELIPPRSystemTimeConstrAuth

Usage: you must use this class as is. You should never derive it.


interface DELIPPRSystemTimeConstrAuth



Method Index


o CreateOrModifyTimeConstraint(CATIPLMNavOccurrence*,CATIPLMNavOccurrence*,double,DELIPPRSystemTimeConstrAuth::ConstraintType)
Creates or retrieve for modification a time constraint between 2 brother occurrences of Operations.
o RemoveTimeConstraint(CATIPLMNavOccurrence*,CATIPLMNavOccurrence*)
Removes a time constraint between 2 brother occurrences of Operations.

Enumerated Type Index


o ConstraintType
Definition the available constraint types.

Methods


o CreateOrModifyTimeConstraint
public virtual CreateOrModifyTimeConstraint( iOperationSourceOcc,
iOperationTargetOcc,
const iDelay= 0.,
iConstraintType= DELIPPRSystemTimeConstrAuth::FinishToStart )
Creates or retrieve for modification a time constraint between 2 brother occurrences of Operations. If both occurences are not child of the same parent, the method will return E_FAIL. The Production System hierarchy is not captured in the Time Constraint -> it must not appear in the given universal links of the Constrained/Constraining Entities. The current Production System or Operation Reference will be the owner & the context of the constraint. (the choice of this context is left to the user and no check is performed but it should be the Least Common Context of both constrained entities or the production system that has a Ref-Ref link toward Process Function DAG ). If the constraint already existed, the type and delay will be modified with the new values. If an inverse constraint already existed, it will be deleted and the new one will be created. If startSideSynchronized or endSideSynchronized is true, any iDelay value will be reset to 0.0
Parameters:
OperationSourceOcc
The list of instances to the Source Operation of the constraint AVOIDING instances of Production System.
OperationTargetOcc
The list of instances to the Target Operation of the constraint AVOIDING instances of Production System.
iDelay
The Constraint Delay (positive or negative).
iConstraintType
Set the type of Time Constraint to create.
Returns:
Legal values:
  • S_OK : The method successfully ended.
  • E_FAIL : An error occurred.
o RemoveTimeConstraint
public virtual RemoveTimeConstraint( ipiOperationFromOcc,
ipiOperationToOcc)
Removes a time constraint between 2 brother occurrences of Operations.
Parameters:
ipiOperationFromOcc
Source Operation Occurence.
ipiOperationToOcc
Target Operation Occurence.
Returns:
Legal values:
  • S_OK : The method successfully ended.
  • E_FAIL : An error occurred.

Enumerated Types


o ConstraintType
enum ConstraintType {
  FinishToStart,
  StartToStart,
  FinishToFinish,
  MaterialNeed
}
Definition the available constraint types.
Parameters:
FinishToStart
Finish To Start. Classic Precedence
StartToStart
Start To Start. Start Together
FinishToFinish
Finish To Finish. Finish Together
MaterialNeed
MaterialNeed is a FinishToStart constraint seen also as a material flow

This object is included in the file: DELIPPRSystemTimeConstrAuth.h
If needed, your Imakefile.mk should include the module: DELPPRSystemItf

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.