Carrier.java

/*
 *        @ Copyright 2001 FA Software;
 *        All right reserved. No part of this program may be reproduced or
 *        transmitted in any form or by any means, electronic or
 *        mechanical, including photocopying, recording, or by any
 *        information storage or retrieval system without written
 *        permission from FA Software, except for inclusion of brief
 *        quotations in a review.
 */
package com.mycim.valueobject.ems;

import com.mycim.framework.utils.lang.StringUtils;

import java.io.Serializable;

public class Carrier extends PCD implements Serializable {

    private static final long serialVersionUID = -3549602308178256456L;

    private Long facilityRrn;

    private double cleanCycle;

    private String carrierStatus;

    private String carrierPollutionLevel;

    // public enum CarrierStatus {
    // HOLD, AVAILABLE, SCRAPPED, INUSED, DELETED, FREE
    // }

    // --------------------------------------------------------- Constructors
    public Carrier() {
        super();
    }

    public Carrier(Long instanceRrn) {
        super(instanceRrn);
    }

    public Carrier(String instanceId, String namedSpace, String object) {
        super(instanceId, namedSpace, object);
    }

    public Long getFacilityRrn() {
        return facilityRrn;
    }

    public void setFacilityRrn(Long facilityRrn) {
        this.facilityRrn = facilityRrn;
    }

    public double getCleanCycle() {
        return cleanCycle;
    }

    public void setCleanCycle(double cleanCycle) {
        this.cleanCycle = cleanCycle;
    }

    public String getCarrierStatus() {
        return carrierStatus;
    }

    public void setCarrierStatus(String carrierStatus) {
        this.carrierStatus = carrierStatus;
    }

    public String getCarrierPollutionLevel() {
        return carrierPollutionLevel;
    }

    public void setCarrierPollutionLevel(String carrierPollutionLevel) {
        this.carrierPollutionLevel = carrierPollutionLevel;
    }

    public boolean isNotEmpty(){
        return StringUtils.isNotBlank(instanceId);
    }

    public enum CarrierType {
        DUMMY
    }

}

/*
 * Modification Log Log No : Name : Modified Date: Description :
 */