API:IMoleculeList
From Wiketomica
| API Home | Participants | API | Discussion | Demos | Downloads | Documentation | Contact Us | Acknowledgements |
IMoleculeList
Reason for existence
It is often helpful to have a method that takes a group of IMolecules. In order for the objects to share a common interface, a simple interface is needed to cover a group of IMolecules.
Proposed Interface
interface IMoleculeList {
/**
* the number of molecules in the set
*/
readonly attribute unsigned int moleculeCount;
/**
* Returns the i-th molecule, with numbering beginning from 0.
* If i is greater than moleculeCount-1, throws an IllegalArgumentException.
*/
readonly attribute IMoleucule molecules[];
}
