Created
August 29, 2012 20:45
-
-
Save RayRoestenburg/3518699 to your computer and use it in GitHub Desktop.
Spider, WebTrail, WebNodeRef
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
/** | |
* A spider which has a home, and leaves a trail on the web | |
*/ | |
case class Spider(home:ActorRef, trail:WebTrail= WebTrail()) | |
/** | |
* A trail on the web. | |
*/ | |
case class WebTrail(collected:Set[ActorRef]= Set(), uuid:UUID = UUID.randomUUID()) | |
/** | |
* A reference to the node in the web and it's pathways going in and coming out. | |
*/ | |
case class WebNodeRef(node:ActorRef, in:List[ActorRef], out:List[ActorRef]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment