~psmay/+junk/honcho-poc-scala

« back to all changes in this revision

Viewing changes to workspace/honcho-poc/src/org/halfgeek/exp/honcho/Entity.scala

  • Committer: Peter S. May
  • Date: 2011-06-10 19:51:50 UTC
  • Revision ID: peter_s._may_httppsmay.com-20110610195150-h2uc4dl432l31ra4
Initial and incomplete

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.halfgeek.exp.honcho
 
2
 
 
3
import scala.reflect.Manifest
 
4
 
 
5
sealed abstract class Entity[+T] {
 
6
        val token: Option[Token]
 
7
}
 
8
 
 
9
case class Register(name: String, token: Option[Token] = None)
 
10
        extends Entity[Nothing]
 
11
 
 
12
case class Value[T](val value: T, val token: Option[Token] = None)
 
13
        extends Entity[T]