Documentation ¶
Overview ¶
Package pyactr provides functions to output the internal actr data structures in Python suitable for running using the pyactr package, and to run those models using Python.
Index ¶
- Constants
- Variables
- type PyACTR
- func (p *PyACTR) GenerateCode(initialBuffers framework.InitialBuffers) (code []byte, err error)
- func (PyACTR) Info() *framework.Info
- func (p PyACTR) Model() (model *actr.Model)
- func (p *PyACTR) Run(initialBuffers framework.InitialBuffers) (result *framework.RunResult, err error)
- func (p *PyACTR) SetModel(model *actr.Model) (err error)
- func (PyACTR) ValidateModel(model *actr.Model) (log *issues.Log)
- func (p *PyACTR) WriteModel(path string, initialBuffers framework.InitialBuffers) (outputFileName string, err error)
Constants ¶
View Source
const (
// When a pattern's AnyChunk is true, we use ANY_CHUNK_TYPE for the chunk type
ANY_CHUNK_TYPE = "any_chunk"
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PyACTR ¶
type PyACTR struct { framework.Framework framework.WriterHelper // contains filtered or unexported fields }
func (*PyACTR) GenerateCode ¶ added in v0.8.0
func (p *PyACTR) GenerateCode(initialBuffers framework.InitialBuffers) (code []byte, err error)
GenerateCode converts the internal actr.Model to Python code.
func (PyACTR) ValidateModel ¶ added in v0.6.0
func (*PyACTR) WriteModel ¶
func (p *PyACTR) WriteModel(path string, initialBuffers framework.InitialBuffers) (outputFileName string, err error)
WriteModel converts the internal actr.Model to Python and writes it to a file.
Click to show internal directories.
Click to hide internal directories.