OSID Logo
OSID Specifications
sequencing package
Version 3.0.0
Release Candidate Preview
Interfaceosid.sequencing.AntimatroidHierarchySession
Implementsosid.OsidSession
Description

This session defines methods for traversing a hierarchy of Antimatroid objects. Each node in the hierarchy is a unique Antimatroid. The hierarchy may be traversed recursively to establish the tree structure through getParentAntimatroids() and getChildAntimatroids(). To relate these Ids to another OSID, getAntimatroidNodes() can be used for retrievals that can be used for bulk lookups in other OSIDs. Any Antimatroid available in the Sequencing OSID is known to this hierarchy but does not appear in the hierarchy traversal until added as a root antimatroid or a child of another antimatroid.

A user may not be authorized to traverse the entire hierarchy. Parts of the hierarchy may be made invisible through omission from the returns of getParentAntimatroids() or getChildAntimatroids() in lieu of a PERMISSION_DENIED error that may disrupt the traversal through authorized featureways.

This session defines views that offer differing behaviors when retrieving multiple objects.

  • comparative antimatroid view: antimatroid elements may be silently omitted or re-ordered
  • plenary antimatroid view: provides a complete set or is an error condition
MethodgetAntimatroidHierarchyId
Description

Gets the hierarchy Id associated with this session.

Returnosid.id.Idthe hierarchy Id associated with this session
CompliancemandatoryThis method must be implemented.
MethodgetAntimatroidHierarchy
Description

Gets the hierarchy associated with this session.

Returnosid.hierarchy.Hierarchythe hierarchy associated with this session
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodcanAccessAntimatroidHierarchy
Description

Tests if this user can perform hierarchy queries. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations.

Returnboolean false if hierarchy traversal methods are not authorized, true otherwise
CompliancemandatoryThis method must be implemented.
MethoduseComparativeAntimatroidView
Description

The returns from the antimatroid methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.

CompliancemandatoryThis method is must be implemented.
MethodusePlenaryAntimatroidView
Description

A complete view of the Antimatroids returns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.

CompliancemandatoryThis method is must be implemented.
MethodgetRootAntimatroidIds
Description

Gets the root antimatroid Ids in this hierarchy.

Returnosid.id.IdListthe root antimatroid Ids
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetRootAntimatroids
Description

Gets the root antimatroid in the antimatroid hierarchy. an antimatroid with no parents is an orphan. While all antimatroid Ids are known to the hierarchy, an orphan does not appear in the hierarchy unless explicitly added as a root antimatroid or child of another antimatroid.

Returnosid.sequencing.AntimatroidListthe root antimatroids
ErrorsOPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method is must be implemented.
MethodhasParentAntimatroids
Description

Tests if the Antimatroid has any parents.

Parametersosid.id.IdantimatroidIdan antimatroid Id
Returnboolean true if the antimatroid has parents, f alse otherwise
ErrorsNOT_FOUND antimatroidId is not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisParentOfAntimatroid
Description

Tests if an Id is a direct parent of antimatroid.

Parametersosid.id.Ididan Id
osid.id.IdantimatroidIdthe Id of an antimatroid
Returnboolean true if this id is a parent of antimatroidId, f alse otherwise
ErrorsNOT_FOUND antimatroidId is not found
NULL_ARGUMENT id or antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id not found return false.

MethodgetParentAntimatroidIds
Description

Gets the parent Ids of the given antimatroid.

Parametersosid.id.IdantimatroidIdan antimatroid Id
Returnosid.id.IdListthe parent Ids of the antimatroid
ErrorsNOT_FOUND antimatroidId is not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetParentAntimatroids
Description

Gets the parents of the given antimatroid.

Parametersosid.id.IdantimatroidIdthe Id to query
Returnosid.sequencing.AntimatroidListthe parents of the antimatroid
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisAncestorOfAntimatroid
Description

Tests if an Id is an ancestor of an antimatroid.

Parametersosid.id.Ididan Id
osid.id.IdantimatroidIdthe Id of an antimatroid
Returnboolean tru e if this id is an ancestor of antimatroidId, false otherwise
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId or id is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id not found return false.

MethodhasChildAntimatroids
Description

Tests if an antimatroid has any children.

Parametersosid.id.IdantimatroidIdan antimatroid Id
Returnboolean true if the antimatroidId has children, false otherwise
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisChildOfAntimatroid
Description

Tests if an antimatroid is a direct child of another.

Parametersosid.id.Ididan Id
osid.id.IdantimatroidIdthe Id of an antimatroid
Returnboolean true if the id is a child of antimatroidId, false otherwise
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT id or antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id not found return false.

MethodgetChildAntimatroidIds
Description

Gets the child Ids of the given antimatroid.

Parametersosid.id.IdantimatroidIdthe Id to query
Returnosid.id.IdListthe children of the antimatroid
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetChildAntimatroids
Description

Gets the children of the given antimatroid.

Parametersosid.id.IdantimatroidIdthe Id to query
Returnosid.sequencing.AntimatroidListthe children of the antimatroid
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodisDescendantOfAntimatroid
Description

Tests if an Id is a descendant of an antimatroid.

Parametersosid.id.Ididan Id
osid.id.IdantimatroidIdthe Id of an antimatroid
Returnboolean true if the id is a descendant of the antimatroidId, false otherwise
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT id or antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
Provider Notes

If id is not found return false.

MethodgetAntimatroidNodeIds
Description

Gets a portion of the hierarchy for the given antimatroid.

Parametersosid.id.IdantimatroidIdthe Id to query
cardinalancestorLevelsthe maximum number of ancestor levels to include. A value of 0 returns no parents in the antimatroid.
cardinaldescendantLevelsthe maximum number of descendant levels to include. A value of 0 returns no children in the antimatroid.
booleanincludeSiblings true to include the siblings of the given antimatroid, false to omit the siblings
Returnosid.hierarchy.Nodean antimatroid node
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.
MethodgetAntimatroidNodes
Description

Gets a portion of the hierarchy for the given antimatroid.

Parametersosid.id.IdantimatroidIdthe Id to query
cardinalancestorLevelsthe maximum number of ancestor levels to include. A value of 0 returns no parents in the hierarchy.
cardinaldescendantLevelsthe maximum number of descendant levels to include. A value of 0 returns no children in the hierarchy.
booleanincludeSiblings true to include the siblings of the given antimatroid, false to omit the siblings
Returnosid.sequencing.AntimatroidNodean antimatroid node
ErrorsNOT_FOUND antimatroidId not found
NULL_ARGUMENT antimatroidId is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
CompliancemandatoryThis method must be implemented.