The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Zing::Logic::Single - Single Logic

ABSTRACT

Single Process Logic Chain

SYNOPSIS

  package Single;

  use parent 'Zing::Single';

  package main;

  use Zing::Logic::Single;

  my $logic = Zing::Logic::Single->new(process => Single->new);

  # $logic->execute;

DESCRIPTION

This package provides the logic (or logic chain) to be executed by the process event-loop.

INHERITS

This package inherits behaviors from:

Zing::Logic

LIBRARIES

This package uses type constraints from:

Zing::Types

ATTRIBUTES

This package has the following attributes:

interupt

  interupt(Interupt)

This attribute is read-only, accepts (Interupt) values, and is optional.

on_perform

  on_perform(CodeRef)

This attribute is read-only, accepts (CodeRef) values, and is optional.

on_receive

  on_receive(CodeRef)

This attribute is read-only, accepts (CodeRef) values, and is optional.

on_register

  on_register(CodeRef)

This attribute is read-only, accepts (CodeRef) values, and is optional.

on_reset

  on_reset(CodeRef)

This attribute is read-only, accepts (CodeRef) values, and is optional.

on_suicide

  on_suicide(CodeRef)

This attribute is read-only, accepts (CodeRef) values, and is optional.

process

  process(Process)

This attribute is read-only, accepts (Process) values, and is required.

METHODS

This package implements the following methods:

flow

  flow() : Flow

The flow method builds and returns the logic flow for the process event-loop.

flow example #1
  # given: synopsis

  my $flow = $logic->flow;

signals

  signals() : HashRef

The signals method builds and returns the process signal handlers.

signals example #1
  # given: synopsis

  my $signals = $logic->signals;

AUTHOR

Al Newkirk, awncorp@cpan.org

LICENSE

Copyright (C) 2011-2019, Al Newkirk, et al.

This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".

PROJECT

Wiki

Project

Initiatives

Milestones

Contributing

Issues