Example #1
0
 public void UpdateTrack(string tag, int x, int y, int z, TimeStamp timestamp)
 {
     PutIntoOld(Position, TimeStamp); 
     Position.XKoordinate = x;
     Position.YKoordinate = y;
     Position.ZKoordinate = z;
     TimeStamp = timestamp;
     CalculateVelocity();
     CalculateCompasCourse();
 }
Example #2
0
 public Track(string tag, int x , int y, int z, TimeStamp timestamp)
 {
     OldPosition = new Position();
     Position = new Position();
     Tag = tag;
     Position.XKoordinate = x;
     Position.YKoordinate = y;
     Position.ZKoordinate = z;
     TimeStamp = new TimeStamp("00000000000000000");
     OldTimeStamp = new TimeStamp("00000000000000000");
     TimeStamp = timestamp;
 }
Example #3
0
 private void PutIntoOld(Position pos, TimeStamp time)
 {
     OldPosition.YKoordinate = pos.YKoordinate;
     OldPosition.XKoordinate = pos.XKoordinate;
     OldPosition.ZKoordinate = pos.ZKoordinate;
     OldTimeStamp.Day = time.Day;
     OldTimeStamp.Hour = time.Hour;
     OldTimeStamp.MilliSecond = time.MilliSecond;
     OldTimeStamp.Minute = time.Minute;
     OldTimeStamp.Month = time.Month;
     OldTimeStamp.Second = time.Second;
     OldTimeStamp.Year = time.Year;
 }