package com.css.simulation.resource.scheduler.infra.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CpuNodeEntity implements Cloneable {
    private String hostname;
    private Integer parallelism;

    @Override
    public CpuNodeEntity clone() {
        try {
            // TODO: copy mutable state here, so the clone can't change the internals of the original
            return (CpuNodeEntity) super.clone();
        } catch (CloneNotSupportedException e) {
            throw new AssertionError();
        }
    }
}
