package Ġf rc . robot . sub systems Ċ Ċ class ĠSub system Manager Ġ{ ĊĠĠĠ Ġprivate Ġval Ġsub systems : ĠCollection < State ful Robot Component <* >> Ġ= Ġmutable ListOf () ĊĊĠĠĠ Ġfun Ġadd Subsystem ( subsystem : ĠStateful Robot Component <* >) Ġ{ ĊĠĠĠĠĠĠĠ Ġsub systems Ġ+ Ġsubsystem ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnotify Sub systems ( robot State : ĠRobot State ) Ġ= Ġsub systems . forEach Ġ{ Ġit . periodic ( robot State ) Ġ} ĊĊĠĠĠ Ġfun Ġreset () Ġ= Ġsub systems . forEach Ġ{ Ġit . reset () Ġ} Ċ }