Position.java

Go to the documentation of this file.
00001 package edu.rice.cs.hpc.traceviewer.spaceTimeData;
00002 
00003 import java.io.Serializable;
00004 
00005 public class Position  implements Serializable {
00009     private static final long serialVersionUID = -2287052521974687520L;
00010     
00011     public long time;
00012     public int process;
00013     
00014     public Position(long _time, int _process ) {
00015         this.time = _time;
00016         this.process = _process;
00017     }
00018     
00019     public boolean isEqual(Position p) {
00020         return (time == p.time && process == p.process);
00021     }
00022     
00023     @Override
00024     public String toString() {
00025         return "("+time+","+process+")";
00026     }
00027 }

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1