Created
May 11, 2012 19:26
-
-
Save cyberoctopi/2661918 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| package universe | |
| import akka.actor._ | |
| import akka.util.duration._ | |
| import akka.util.Duration | |
| import akka.util.Timeout | |
| import akka.event.LoggingReceive | |
| import akka.pattern.{ ask, pipe } | |
| import com.typesafe.config.ConfigFactory | |
| import Akka._ | |
| import Stream._ | |
| case class Event | |
| case class Notification | |
| case class Alert | |
| abstract class Sense | |
| // types of thought capable | |
| case class Episodic extends Sense | |
| case class Semantic extends Sense | |
| /* faint things we pick up at a glance, seemingly unimportant but over time pattern matching collected from | |
| miniscule occurrences create solid facts the mind holds on to? | |
| - occurrence...filter kind, datetime, number of occurrences | |
| - over time it would be helpful to be aware of what other events are happening during the same period of time. | |
| - once an event is discovered it should be observed by an agent..if the event goes idle the agent may die but the agents information | |
| - should be temporarily saved(Sensory type) in some sort of short term persistence for mining to see if it matches any other occurences taking place lately. if so...it's importance grows. | |
| */ | |
| case class Sensory(occurence: Any) extends Sense | |
| class Discovery(event: Any) { | |
| val discovered_event = event match { | |
| case Episodic => _ | |
| case Semantic => _ | |
| case Sensory => _ // implement parallel streams then group by kind if available...anything else goes into a dump | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment