Ejemplo n.º 1
0
        // force construction with make static methods
        /** used for when the ocrrence time will be set later; so should not be called from externally but through another Stamp constructor */
        private Stamp(EnumTense tense, long serial)
        {
            dualStamp = new DualStamp(Parameters.STAMP_NUMBEROFELEMENTS, Parameters.STAMP_BLOOMFILTERNUMBEROFBITS);
            dualStamp.insertAtFront(new List <uint> {
                // HACK< stamps must store long !!! >
                (uint)serial
            });

            this.tense = tense;
        }
Ejemplo n.º 2
0
        public static Stamp makeByTimeTenseSerialAndDuration(
            long time,
            EnumTense tense,
            long serial,
            uint duration
            )
        {
            Stamp created = new Stamp(tense, serial);

            created.setCreationTime(time, duration);
            return(created);
        }
Ejemplo n.º 3
0
 public static Stamp makeByTense(Memory memory, EnumTense tense)
 {
     return(makeByTimeTenseSerialAndDuration(memory.time, tense, memory.newStampSerial(), memory.param.duration.value));
 }