edu.nrao.sss.model.proposal
Class SessionPair

java.lang.Object
  extended by edu.nrao.sss.model.proposal.SessionPair
All Implemented Interfaces:
Identifiable

public class SessionPair
extends Object
implements Identifiable

Placeholder for time when we integrate proposal work. A pairing of a Source and a Resource.

CVS Info:

$Revision: 1709 $
$Date: 2008-11-14 11:22:37 -0700 (Fri, 14 Nov 2008) $
$Author: dharland $

Since:
2006-03-23

Field Summary
 
Fields inherited from interface edu.nrao.sss.util.Identifiable
UNIDENTIFIED
 
Constructor Summary
SessionPair()
          Creates a new instance.
 
Method Summary
 Long getId()
           
 Resource getResource()
          Returns this pair's resource.
 Source getSource()
          Returns this pair's source.
 void reset()
          Resets this session pair to its initial state.
 void setResource(Resource newResource)
          Sets this pair's resource.
 void setSource(Source newSource)
          Sets this pair's source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionPair

public SessionPair()
Creates a new instance.

Method Detail

reset

public void reset()
Resets this session pair to its initial state. A reset session has the same state as a new session pair.


getId

public Long getId()
Specified by:
getId in interface Identifiable

setSource

public void setSource(Source newSource)
Sets this pair's source.

Parameters:
newSource - a new source for this session pair.

getSource

public Source getSource()
Returns this pair's source.

Returns:
this pair's source, or null if this pair has no source.

setResource

public void setResource(Resource newResource)
Sets this pair's resource.

Parameters:
newResource - a new resource for this session pair.

getResource

public Resource getResource()
Returns this pair's resource.

Returns:
this pair's resource, or null if this pair has no resource.


Copyright © 2009. All Rights Reserved.