def __init__(self, spec, typecheck=True, dieInGenCode=True, overwrite=False, codepath=None):
     overwrite = False  # can never overwrite
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.codepath = j.system.fs.joinPaths(codepath, "methodtasklets")
     j.system.fs.createDir(self.codepath)
     self.type = "tasklets"
     self.overwrite = overwrite
 def __init__(self, spec, typecheck=True, dieInGenCode=True, overwrite=False, codepath=None):
     overwrite = False  # can never overwrite
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.codepath = j.sal.fs.joinPaths(codepath, "methodtasklets")
     j.sal.fs.createDir(self.codepath)
     self.type = "tasklets"
     self.overwrite = overwrite
    def __init__(self, spec, typecheck=True, dieInGenCode=True, codepath=None, args={}):
        CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
        self.codepath = j.sal.fs.joinPaths(codepath, "methodclass")
        j.sal.fs.createDir(self.codepath)
        self.type = "actorclass"

        self.tags = args["tags"]
    def __init__(self, spec, typecheck=True, dieInGenCode=True, codepath=None, args={}):
        CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
        self.codepath = j.sal.fs.joinPaths(codepath, "methodclass")
        j.sal.fs.createDir(self.codepath)
        self.type = "actorclass"

        self.tags = args["tags"]
    def __init__(self, spec, typecheck=True, dieInGenCode=True):
        CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)

        self.actorpath = j.sal.fs.joinPaths(j.core.codegenerator.codepath,
                                            spec.appname, spec.actorname)
        j.sal.fs.createDir(self.actorpath)
        self.type = "actorlocal"
 def __init__(self, spec, typecheck=True, dieInGenCode=True, instance=0, redis=False, wsclient=None, codepath=None):
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.actorpath = j.system.fs.joinPaths(codepath, spec.appname, spec.actorname)
     j.system.fs.createDir(self.actorpath)
     self.type = "actorremote"
     self.instance = int(instance)
     self.redis = redis
     if wsclient != None:
         self.ip = wsclient.ip
         self.port = wsclient.port
         self.secret = wsclient.secret
     else:
         self.ip, self.port, self.secret = j.core.appserver6.gridmap.get(spec.appname, spec.actorname, instance)
    def __init__(self,
                 spec,
                 typecheck=True,
                 dieInGenCode=True,
                 overwrite=True,
                 codepath=None,
                 args=None):
        overwrite = False  # can never overwrite
        CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
        self.args = args
        self.spec = spec
        self.key = "%s_%s_%s" % (spec.appname, spec.actorname, spec.name)

        self.codepath = j.system.fs.joinPaths(codepath, "osis", spec.name)
        j.system.fs.createDir(self.codepath)
        self.type = "taskletsosis"
        self.overwrite = overwrite
Exemple #8
0
 def __init__(self,
              spec,
              typecheck=True,
              dieInGenCode=True,
              instance=0,
              redis=False,
              wsclient=None,
              codepath=None):
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.actorpath = j.sal.fs.joinPaths(codepath, spec.appname,
                                         spec.actorname)
     j.sal.fs.createDir(self.actorpath)
     self.type = "actorremote"
     self.instance = int(instance)
     self.redis = redis
     if wsclient != None:
         self.ip = wsclient.ip
         self.port = wsclient.port
         self.secret = wsclient.secret
     else:
         self.ip, self.port, self.secret = j.core.appserver6.gridmap.get(
             spec.appname, spec.actorname, instance)
 def __init__(self, spec, typecheck=True, dieInGenCode=True, codepath=''):
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.type = "EveModel"
 def __init__(self, spec, typecheck=True, dieInGenCode=True):
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.type = "JSModel"
 def __init__(self, spec, typecheck=True, dieInGenCode=True):
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.type = "enumeration"
 def __init__(self, spec, typecheck=True, dieInGenCode=True, codepath=''):
     CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)
     self.type = "EveModel"
    def __init__(self, spec, typecheck=True, dieInGenCode=True):
        CodeGeneratorBase.__init__(self, spec, typecheck, dieInGenCode)

        self.actorpath = j.sal.fs.joinPaths(j.core.codegenerator.codepath, spec.appname, spec.actorname)
        j.sal.fs.createDir(self.actorpath)
        self.type = "actorlocal"