s/BenchmarkReport.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Fri, 31 May 2013 12:13:11 +0100
changeset 5 8669edf62d9b
parent 1 1ab204c5442a
child 12 3a7ebd3da52f
permissions -rw-r--r--
Fixes to make it running on Squeak/Pharo.

"{ Package: 'jv:calipel/s' }"

Object subclass:#BenchmarkReport
	instanceVariableNames:'stream result'
	classVariableNames:''
	poolDictionaries:''
	category:'CalipeL/S-Core-Reports'
!


!BenchmarkReport class methodsFor:'instance creation'!

text
    ^BenchmarkReportText new

    "Created: / 28-05-2013 / 00:59:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
    "Modified: / 28-05-2013 / 11:03:12 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!BenchmarkReport class methodsFor:'testing'!

isAbstract
    ^self == BenchmarkReport

    "Created: / 28-05-2013 / 00:32:03 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!BenchmarkReport methodsFor:'accessing'!

result
    ^ result
!

result:something
    result := something.
!

stream
    ^ stream
!

stream:something
    stream := something.
! !

!BenchmarkReport methodsFor:'writing'!

write
    ^self subclassResponsibility.

    "Created: / 28-05-2013 / 00:34:14 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!

write: aBenchmarkResult on: aStream
    self stream: aStream.
    self result: aBenchmarkResult.
    self write.

    "Created: / 28-05-2013 / 00:33:37 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!BenchmarkReport class methodsFor:'documentation'!

version_HG

    ^ '$Changeset: <not expanded> $'
!

version_MC
    ^ 'CalipeL_S-Core-JanVrany.7 5c300a20-c9d7-11e2-a959-606720e43e2c 2013-05-31T10:49:17 JanVrany'
! !