First functional version of a blackboard and a blackboard based obicount

This commit is contained in:
Eric Coissac
2024-07-31 23:16:45 +02:00
parent dfe2fc3d43
commit f36b39bfa3
40 changed files with 1236 additions and 257 deletions

View File

@ -186,6 +186,21 @@ func (s BioSequenceSlice) Size() int {
return size
}
// Count calculates the total count of all BioSequence elements in the BioSequenceSlice.
//
// It iterates over each BioSequence in the slice and adds the count of each BioSequence to the total count.
//
// Returns the total count as an integer.
func (s BioSequenceSlice) Count() int {
size := 0
for _, s := range s {
size += s.Count()
}
return size
}
func (s BioSequenceSlice) AttributeKeys(skip_map bool) obiutils.Set[string] {
keys := obiutils.MakeSet[string]()