use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)]
pub struct CostFunction {
pub model_move_cost: u32,
pub log_move_cost: u32,
pub sync_move_cost: u32,
pub silent_move_cost: u32,
}
impl CostFunction {
pub fn standard() -> Self {
Self {
model_move_cost: 1,
log_move_cost: 1,
sync_move_cost: 0,
silent_move_cost: 0,
}
}
}