示例#1
0
 //# __________ PROTOCOL :: INSTANCE CREATION __________ #//
 public static JwTimeInterval CreateTimeInterval(JwTime start, JwTime end)
 {
     JwTimeInterval ti;
     ti = new JwTimeInterval();
     ti.SetStart(start);
     ti.SetEnd(end);
     return ti;
 }
示例#2
0
 public bool ContainsExclusive(JwTimeInterval ti)
 {
     if ( ti == null ) return false;
     return ContainsExclusive(ti.GetStart()) &&
         ContainsExclusive(ti.GetEnd());
 }
示例#3
0
 public bool Contains(JwTimeInterval ti)
 {
     return ContainsInclusive(ti);
 }
示例#4
0
 public bool Intersects(JwTimeInterval ti)
 {
     if ( ti == null ) return false;
     if ( Contains(ti.GetStart()) ) return true;
     if ( Contains(ti.GetEnd()) )   return true;
     if ( ti.Contains(GetStart()) ) return true;
     return false;
 }
示例#5
0
 //# __________ PROTOCOL :: COPY __________ #//
 public JwTimeInterval GetTimeIntervalCopy()
 {
     JwTimeInterval e;
     e = new JwTimeInterval();
     if ( HasStart() ) e.SetStart(GetStart().GetTimeCopy());
     if ( HasEnd() )   e.SetEnd(GetEnd().GetTimeCopy());
     return e;
 }