Segment Dependency Property

Sepasoft MES Module Suite

Description

All Operations Definition objects have one or more operations segment objects. The Segment Dependency Property object holds information about the segments associated with the Operations Definition object. In the MES Object Editor component, this dependency is shown as the operations segments below the definition object.

Warning

This object is not derived from the MESAbstractObject. Instead it derives from AbstractMESComplexProperty object and inherits all its functions and properties.



 

Object Creation

This object is created automatically when an Operations Definition and Operations Segment are created during saving of a Process Segment in the MES Object Editor

The following object function returns this type of object:

 

Click here to see script example...



Code
opDefName = 'PC-005-Nuts Unlimited:Folsom:Packaging:Packaging Line 1'
mesObject = system.mes.loadMESObject(opDefName, 'OperationsDefinition')
list = mesObject.getComplexPropertyTypeNames()
print "Listing all the ComplexPropertyTypes for object - ", mesObject.getName()
for i in range(list.size()):
    complexPropType = list.get(i)
    print '- ', complexPropType
print ' '
prodList = mesObject.getComplexPropertyItemNames('SegmentDependency')
for item in prodList:
	print 'SegmentDependencyName = ',item
	opSegDependency = mesObject.getComplexProperty('SegmentDependency', item)
	print opSegDependency



Code
>>> 
Listing all the ComplexPropertyTypes for object -  PC-005-Nuts Unlimited:Folsom:Packaging:Packaging Line 1
-  SegmentDependency
-  TriggerOperBegin
 
SegmentDependencyName =  Changeover Dependency
{SegmentRef=Operations Segment, PC-005-Nuts Unlimited:Folsom:Packaging:Packaging Line 1_CO, SegmentRefUUID=c0483833-08b5-4ac6-a3c5-e094fc0a5637, SegmentRefType=OperationsSegment, SegmentDependencyType=null, SegmentDependencyFactor=null, SegmentDependencyFactorUnits=null}
SegmentDependencyName =  Production Dependency
{SegmentRef=Operations Segment, PC-005-Nuts Unlimited:Folsom:Packaging:Packaging Line 1, SegmentRefUUID=c6cc681f-5dca-4eb6-84ea-e1a29dee26e1, SegmentRefType=OperationsSegment, SegmentDependencyType=null, SegmentDependencyFactor=null, SegmentDependencyFactorUnits=null}
>>>  





 

Use

No scripting function or component use this object directly.


 

Object Properties

See AbstractMESComplexProperty for details about accessing values using script.

Setting NameScriptingDescription
Segment_Dependency NameSegmentDependencyThis is the name to use when referencing this Segment Dependency property. Operations Definitions may have multiple Segment resources and this is a unique name displayed to the operator, shown in analysis and reports, and also internally used to reference the property.
Segment ReferenceSegmentRefThe reference to the Process Segment or Operations Segment that this segment dependency is linked to.
Segment Dependency Type

SegmentDependencyType

Currently this is here for reference and is included to align with the ISA-95 standard and will become significant in the next phase of the Track and Trace Module.
Segment Dependency FactorSegmentDependencyFactorCurrently this is here for reference and is included to align with the ISA-95 standard and will become significant in the next phase of the Track and Trace Module.
Segment.Dependency.Factor.UnitsSegmentDependencyFactorUnitsUnits for the Segment Dependency Factor setting.



 

Object Functions

This object provides the following functions:

Info

Information

Segment references can be set in one of two ways:

  1. Passing an object link to the method setSegmentRef(ref)

  2. Using a uuid and type with setSegmentRefUUID(refUUID) and setSegmentRefType(refType)


getDependencyFactor()


Description

 Get the dependency factor.


Syntax

getDependencyFactor()


  • Parameters

 None

  • Returns

 Double factor - The dependency factor.

  • Scope

All



getDependencyType()


Description

 Get the type of dependency.


Syntax

getDependencyType()


  • Parameters

 None

  • Returns

 String type - The type of dependency.

  • Scope

All



getFactorUnits()


Description

 Get the units of dependency factor.


Syntax

getFactorUnits()


  • Parameters

 None

  • Returns

 String type - The units of dependency factor.

  • Scope

All



getSegmentRef()


Description

 Get reference to the segment.


Syntax

getSegmentRef()


  • Parameters

 None

  • Returns

 MESObjectLink ref - Reference to the segment.

  • Scope

All



getSegmentRefType()


Description

 Get reference type to the segment.


Syntax

getSegmentRefType()


  • Parameters

 None

  • Returns

 String refType - Reference type to the segment.

  • Scope

All



getSegmentRefUUID()


Description

 Get reference uuid to the segment.


Syntax

getSegmentRefUUID()


  • Parameters

 None

  • Returns

 String refUUID - Reference uuid to the segment.

  • Scope

All



setDependencyFactor(factor)


Description

 Set the dependency factor.


Syntax

setDependencyFactor(factor)


  • Parameters

 Double factor - The dependency factor.

  • Returns

Nothing

  • Scope

All



setDependencyType(type)


Description

 Set the type of dependency.


Syntax

setDependencyType(type)


  • Parameters

 String type - The type of dependency.

  • Returns

 Nothing

  • Scope

All



setFactorUnits(units)


Description

Set the units of dependency factor.


Syntax

setFactorUnits(units)


  • Parameters

 String type - The units of dependency factor.

  • Returns

 Nothing

  • Scope

All



setSegmentRef(ref)


Description

 Set reference to the segment.


Syntax

setSegmentRef(ref)


  • Parameters

 MESObjectLink ref - Reference to the segment.

  • Returns

 Nothing

  • Scope

All



setSegmentRefType(refType)


Description

 Set reference type to the segment.


Syntax

setSegmentRefType(refType)


  • Parameters

String refType - Reference type to the segment.

  • Returns

 Nothing

  • Scope

All



setSegmentRefUUID(refUUID)


Description

 Set reference uuid to the segment.


Syntax

setSegmentRefUUID(refUUID)


  • Parameters

String refUUID - Reference uuid to the segment.

  • Returns

Nothing

  • Scope

All



Sepasoft MES Module Suite