mirror of
https://github.com/furyfire/trueskill.git
synced 2025-06-28 07:30:54 +00:00
21 lines
453 B
PHP
21 lines
453 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace DNW\Skills\FactorGraphs;
|
|
|
|
class ScheduleStep extends Schedule
|
|
{
|
|
public function __construct(string $name, private readonly Factor $factor, private readonly int $index)
|
|
{
|
|
parent::__construct($name);
|
|
}
|
|
|
|
public function visit(int $depth = -1, int $maxDepth = 0): float
|
|
{
|
|
$currentFactor = $this->factor;
|
|
|
|
return $currentFactor->updateMessageIndex($this->index);
|
|
}
|
|
}
|