Public Class DiSkillV2
Protected kokoro As Kokoro = New Kokoro(New AbsDictionaryDB()) ' consciousness, shallow ref class to enable interskill communications
Protected diSkillUtils As DISkillUtils = New DISkillUtils()
Protected outAlg As Algorithm = Nothing ' skills output
Protected outpAlgPriority As Integer = -1 ' defcon 1->5
Public Sub New()
MyBase.New()
End Sub
Public Sub Input(ear As String, skin As String, eye As String)
End Sub
Public Sub Output(noiron As Neuron)
If outAlg IsNot Nothing Then
noiron.InsertAlg(Me.outpAlgPriority, outAlg)
outpAlgPriority = -1
outAlg = Nothing
End If
End Sub
Public Sub SetKokoro(kokoro As Kokoro)
Me.kokoro = kokoro
End Sub
Protected Sub SetVerbatimAlg(priority As Integer, ParamArray sayThis As String())
Me.outAlg = Me.diSkillUtils.SimpleVerbatimAlgorithm(sayThis)
Me.outpAlgPriority = priority ' 1->5 1 is the highest algorithm priority
End Sub
Protected Sub SetSimpleAlg(ParamArray sayThis As String())
Me.outAlg = Me.diSkillUtils.SimpleVerbatimAlgorithm(sayThis)
Me.outpAlgPriority = 4 ' 1->5 1 is the highest algorithm priority
End Sub
Protected Sub SetVerbatimAlgFromList(priority As Integer, sayThis As List(Of String))
Me.outAlg = Me.diSkillUtils.AlgBuilder(New APVerbatim(sayThis))
Me.outpAlgPriority = priority ' 1->5 1 is the highest algorithm priority
End Sub
Protected Sub AlgPartsFusion(priority As Integer, ParamArray algParts As Mutatable())
Me.outAlg = Me.diSkillUtils.AlgBuilder(algParts)
Me.outpAlgPriority = priority ' 1->5 1 is the highest algorithm priority
End Sub
Public Function PendingAlgorithm() As Boolean
Return Me.outAlg IsNot Nothing
End Function
End Class