org.openpermis.basic
Interface TimePeriod

All Known Implementing Classes:
AbsoluteTimePeriod, TimePeriod.EmptyTimePeriod, TimePeriod.InfiniteTimePeriod

public interface TimePeriod

A period of time.

Since:
0.3.0

Nested Class Summary
static class TimePeriod.EmptyTimePeriod
          An empty period of time.
static class TimePeriod.InfiniteTimePeriod
          An infinite period of time.
 
Field Summary
static TimePeriod EMPTY
          An empty period of time.
static TimePeriod INFINITE
          An infinite period of time.
 
Method Summary
 TimePeriod constrain(TimePeriodConstraint constraint, TimeStamp timeStamp)
          Returns a constrained time period.
 TimePeriod constrain(TimePeriod period, TimeStamp timeStamp)
          Returns a constrained time period.
 boolean contains(TimeStamp currentTime)
          Returns true if this time period contains current time.
 

Field Detail

INFINITE

static final TimePeriod INFINITE
An infinite period of time.

Since:
0.3.0

EMPTY

static final TimePeriod EMPTY
An empty period of time.

Since:
0.3.0
Method Detail

contains

boolean contains(TimeStamp currentTime)
Returns true if this time period contains current time.

Parameters:
currentTime - a TimeStamp.
Returns:
true if this time period contains current time.
Since:
0.3.0

constrain

TimePeriod constrain(TimePeriodConstraint constraint,
                     TimeStamp timeStamp)
Returns a constrained time period.

Parameters:
constraint - a TimePeriodConstraint.
timeStamp - the current TimeStamp.
Returns:
the constrained time period.
Since:
0.3.0

constrain

TimePeriod constrain(TimePeriod period,
                     TimeStamp timeStamp)
Returns a constrained time period.

Parameters:
period - a TimePeriod.InfiniteTimePeriod.
timeStamp - a TimeStamp.
Returns:
the constrained time period.
Since:
0.3.0


PERMIS Role Based Access Control 0.3.0 (Build 14)
2009/05/08 09:06:22
Copyright (c) 2002-2007 Ergon Informatik AG