File: StrEntity.py

package info (click to toggle)
dissy 4-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 228 kB
  • ctags: 283
  • sloc: python: 1,156; xml: 16; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 604 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
######################################################################
##
## Copyright (C) 2006,  Blekinge Institute of Technology
##
## Filename:      StrEntity.py
## Author:        Simon Kagstrom <ska@bth.se>
## Description:   String entity
##
## $Id: StrEntity.py 12443 2006-11-25 10:14:44Z ska $
##
######################################################################
from dissy.Entity import Entity

class StrEntity(Entity):
    def __init__(self, fn, string):
	self.string = string
	self.function = fn

    def getFunction(self):
	return self.function

    def __str__(self):
	return self.string