Skip to content

Instantly share code, notes, and snippets.

@RayRoestenburg
Created August 29, 2012 20:45
Show Gist options
  • Save RayRoestenburg/3518699 to your computer and use it in GitHub Desktop.
Save RayRoestenburg/3518699 to your computer and use it in GitHub Desktop.
Spider, WebTrail, WebNodeRef
/**
* 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