Newer
Older
/**
* This file is part of VisiCut.
* Copyright (C) 2011 Thomas Oster <thomas.oster@rwth-aachen.de>
* RWTH Aachen University - 52062 Aachen, Germany
*
* VisiCut is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VisiCut is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with VisiCut. If not, see <http://www.gnu.org/licenses/>.
**/
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.t_oster.liblasercut;
Thomas Oster
committed
import java.util.LinkedList;
import java.util.List;
/**
*
* @author Thomas Oster <thomas.oster@rwth-aachen.de>
*/
public class LaserJob
{
private String title;
private String name;
private String user;
private int resolution;
private int startX = 0;
private int startY = 0;
Thomas Oster
committed
private List<JobPart> parts = new LinkedList<JobPart>();
Thomas Oster
committed
public LaserJob(String title, String name, String user, int resolution)
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
this.title = title;
this.name = name;
this.user = user;
this.resolution = resolution;
}
public void setStartPoint(int x, int y)
{
startX = x;
startY = y;
}
public int getStartX()
{
return startX;
}
public int getStartY()
{
return startY;
}
public String getTitle()
{
return title;
}
public String getName()
{
return name;
}
public String getUser()
{
return user;
}
public int getResolution()
{
return resolution;
}
Thomas Oster
committed
public void addPart(JobPart p)
Thomas Oster
committed
this.parts.add(p);
Thomas Oster
committed
public void removePart(JobPart p)
Thomas Oster
committed
this.parts.remove(p);
Thomas Oster
committed
public List<JobPart> getParts()
Thomas Oster
committed
return parts;