001    package edu.nrao.sss.model.proposal;
002    
003    import java.io.Serializable;
004    
005    /** <i>Placeholder for time when we integrate proposal work.</i> */
006    public class StudentSupport implements Serializable {
007            
008            private static final long serialVersionUID = 1;
009            
010            private String travel      = "";
011            private String hardware    = "";
012            private float miscBudget  = 0;
013            private boolean applied    = false;
014            
015            public StudentSupport() {}
016            
017            public void setTravel(String travel) {
018                    this.travel = travel;
019            }
020            
021            public String getTravel() {
022                    return travel;
023            }
024            
025            public void setHardware(String hardware) {
026                    this.hardware = hardware;
027            }
028            
029            public String getHardware() {
030                    return hardware;
031            }
032            
033            public void setMiscBudget(float miscBudget) {
034                    this.miscBudget = miscBudget;
035            }
036            
037            public float getMiscBudget() {
038                    return miscBudget;
039            }
040            
041            public boolean isApply(){
042                    return applied;
043            }
044            
045            public void setApply( boolean b ){
046                    applied = b;
047            }
048            
049            //need to implement this to not use the proposal id or something....
050            /*
051            public boolean equals ( Object other ){
052    
053                    if (other != null && other instanceof StudentSupport)
054                    {
055                            //Proposal ids must be the same
056                            StudentSupport otherSupport = (StudentSupport)other;
057                            String otherPropId = otherSupport.getProposalId();
058                            if (otherPropId != null && otherPropId.equals(propId)){
059                                    return true;
060                            }
061                            else if (otherPropId == null && propId == null){
062                                    return true;
063                            }
064                    }
065                    return false;
066            }
067            
068            public int hashCode(){
069                    if ( propId != null ){
070                            return propId.hashCode();
071                    }
072                    return 0;
073            }
074            */
075    }