title 1 Writing Stars 
header1 2 1 Introduction 
header1 2 2 The Ptolemy Processor Language 
index 0-2 ptlang
index 0-3 ident
index 0-4 defstar
index 0-4 defgalaxy
header1 4 3 Using the preprocessor 
header1 4 4 Items that appear in a defstar 
headerU 5 name 
index 0-5 name { }
headerU 5 domain 
index 0-5 domain { }
headerU 5 derivedfrom 
index 0-5 derivedfrom { }
headerU 5 descriptor 
index 0-5 desc { }
index 0-5 descriptor { }
headerU 6 version 
index 0-6 version { }
index 0-6 SCCS
headerU 6 author 
index 0-6 author { }
headerU 6 copyright 
index 0-6 copyright { }
headerU 7 location 
index 0-7 location { }
headerU 7 explanation 
index 0-7 explanation { }
headerU 7 defstate 
index 0-7 defstate { }
index 0-8 attributes
index 0-8 edit-parameters
headerU 9 input, output, inmulti, outmulti 
index 0-9 input { }
index 0-9 output { }
index 0-9 inmulti { }
index 0-9 outmulti { }
index 0-9 numtokens
index 0-9 num { }
index 0-9 type inheritance
headerU 10 constructor 
index 0-10 constructor { }
headerU 10 conscalls 
index 0-10 conscalls { }
headerU 11 destructor 
index 0-11 destructor { }
headerU 11 start 
index 0-11 start { }
headerU 11 go 
index 0-11 go { }
headerU 11 wrapup 
index 0-11 wrapup { }
headerU 11 exectime 
headerU 12 public, protected, private 
index 0-12 public { }
index 0-12 protected { }
index 0-12 private { }
headerU 12 ccinclude, hinclude 
index 0-12 ccinclude { }
index 0-12 hinclude { }
headerU 12 code 
index 0-12 code { }
headerU 13 header 
index 0-13 header { }
headerU 13 method 
index 0-13 method { }
header1 14 5 Items that appear in galaxies 
headerU 14 Items that are the same as in defstar 
header1 14 6 Writing C++ code for stars 
index 0-14 C++
index 0-14 method
index 0-14 member
header2 15 6.1 The structure of a Ptolemy star 
header2 15 6.2 Reading inputs and writing outputs 
header3 15 2 PortHoles and Particles 
index 0-15 InSDFPort
index 0-15 OutSDFPort
index 0-15 PortHole
index 0-15 Particle
header3 17 2 SDF PortHole parameters 
index 0-17 setSDFParams
index 0-17 SDF parameters
index 0-17 past particles
index 0-17 consuming multiple particles
index 0-17 producing multiple particles
header3 17 2 Multiple PortHoles 
index 0-17 multiple portholes
index 0-17 MultiPortHole
index 0-17 inmulti
index 0-17 outmulti
index 0-17 iterators
index 0-17 MPHIter
index 0-17 MuliPortHole iterator
header3 19 2 Type conversion 
index 0-19 Particle types
index 0-19 types
header3 20 2 PortHoles in the DE domain 
index 0-20 DE timestamps
index 0-20 arrivalTime
index 0-20 DEPortHole
index 0-20 dataNew
index 0-20 completionTime
index 0-20 DERepeatStar
index 0-21 OutDEMPHIter
index 0-21 InDEMPHIter
index 0-21 InDEPort
index 0-21 OutDEPort
header2 21 6.3 States 
index 0-21 state
index 0-21 attributes
index 0-22 A_SETTABLE
index 0-22 A_NONCONSTANT
index 0-22 FloatState
index 0-22 ComplexState
index 0-22 IntState
index 0-22 StringState
index 0-22 Complex type
header2 23 6.4 Array States 
index 0-23 ArrayState
index 0-23 FloatArrayState
index 0-23 IntArrayState
index 0-23 ComplexArrayState
index 0-23 initializing states from files
header3 27 4 Modifying states in derived classes 
header2 27 6.5 Using random numbers 
header2 29 6.6 Programming examples 
index 0-32 polymorphism
header1 33 7 Adding or modifying stars 
