Created
November 4, 2019 04:25
-
-
Save IntegerMan/7a3ebd0f2bbac59f9fff34396baab858 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using JetBrains.Annotations; | |
using MattEland.FSharpGeneticAlgorithm.Genetics; | |
namespace MattEland.FSharpGeneticAlgorithm.WindowsClient.ViewModels | |
{ | |
public class BrainInfoViewModel | |
{ | |
public BrainInfoViewModel([NotNull] Genes.ActorChromosome brain) | |
{ | |
Model = brain ?? throw new ArgumentNullException(nameof(brain)); | |
} | |
public double SquirrelPriority => Model.squirrelImportance; | |
public double DoggoPriority => Model.dogImportance; | |
public double RabbitPriority => Model.rabbitImportance; | |
public double AcornPriority => Model.acornImportance; | |
public double TreePriority => Model.treeImportance; | |
public double RandomPriority => Model.randomImportance; | |
public Genes.ActorChromosome Model { get; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment