Advertisement
Guest User

Untitled

a guest
Aug 5th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.78 KB | None | 0 0
  1. class Predicate(ndb.Model):
  2.     name = ndb.StringProperty()
  3.     parameters = ndb.JsonProperty()
  4.  
  5. class State(ndb.Model):
  6.     predicates = ndb.StructuredProperty(Predicate, repeated=True)
  7.  
  8. class Action(ndb.Model):
  9.     name = ndb.StringProperty()
  10.     parameters = ndb.StringProperty(repeated=True)
  11.     preconditions = ndb.StructuredProperty(Predicate, repeated=True)
  12.     predicatesToAdd = ndb.StructuredProperty(Predicate, repeated=True)
  13.     predicatesToDel = ndb.StructuredProperty(Predicate, repeated=True)
  14.  
  15. class Plan(ndb.Model):
  16.     plan = ndb.StructuredProperty(Predicate, repeated=True)
  17.  
  18. class Problem(ndb.Model):
  19.     initialState = ndb.StructuredProperty(Predicate)
  20.     goalState = ndb.StructuredProperty(Predicate)
  21.     actions = ndb.StructuredProperty(Action, repeated=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement