示例#1
0
void 
OrderedTask::Clear()
{
  while (task_points.size())
    ErasePoint(0);

  while (optional_start_points.size())
    EraseOptionalStartPoint(0);

  Reset();
  ordered_behaviour = task_behaviour.ordered_defaults;
  active_factory->UpdateOrderedTaskBehaviour(ordered_behaviour);
}
示例#2
0
bool
OrderedTask::RemoveOptionalStart(const unsigned position)
{
  if (position >= optional_start_points.size())
    return false;

  EraseOptionalStartPoint(position);

  if (task_points.size()>1)
    SetNeighbours(0);

  return true;
}