public class ImageBlock extends Object implements Comparable<ImageBlock>, Serializable
| Modifier and Type | Field and Description |
|---|---|
private Number |
derotator
The derotator offset, if blocking criterium (flats).
|
private String |
filter
The color filter, if blocking criterium (flat, science).
|
private Date |
first
The first date as found in the first image in the block.
|
private String |
id
The unique id of the block, equal to fitst unique of fits.
|
private Date |
last
The last date as found in the first image in the block.
|
private SortedMap<String,ImageInfo> |
objid
The sorted list of object ids.
|
private static long |
serialVersionUID
As of 22.10.2013.
|
private String |
telescope
The telescope name.
|
private ObserveSql.Types |
type
The type of block.
|
private int |
version
The instrument version of the block.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ImageBlock(ObserveSql.Types typ,
int v,
String tel,
SortedMap<String,ImageInfo> obj,
Date from,
Date to)
Constructs a new image block.
|
protected |
ImageBlock(ObserveSql.Types typ,
int v,
String tel,
SortedMap<String,ImageInfo> obj,
Date from,
Date to,
String filt)
Constructs a new image block.
|
protected |
ImageBlock(ObserveSql.Types typ,
int v,
String tel,
SortedMap<String,ImageInfo> obj,
Date from,
Date to,
String filt,
Number derot)
Constructs a new image block.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ImageBlock that)
Order is to first image in list.
|
boolean |
equals(Object th)
Two image blocks are equal if they are drawn from the same telescope,
have the same image type, are identical in begin and end and have the
same number of ids.
|
Number |
getDerotator()
Returns the derotator, if a blocking criterium, otherwise null.
|
long |
getDuration()
Returns the duration of this block in ms.
|
Date |
getEnd()
Returns the end time of the block, excluding exposure time of last
frame.
|
String |
getFilter()
Returns the filter, if a blocking criterium, otherwise null.
|
ImageInfo |
getInfo(String id)
Returns the image info to the stated unique.
|
Date |
getStart()
Returns the beginning time of the block.
|
String |
getTelescope()
Returns the telescope.
|
ObserveSql.Types |
getType()
Returns the type
|
String |
getUnique()
Returns the unique id of this block.
|
List<String> |
getUniqueList()
Returns all object-ids in this block in natural order.
|
int |
getVersion() |
int |
hashCode()
The hash code is the hash code of the first date.
|
int |
size()
Number of image infos in this block.
|
private static final long serialVersionUID
private String id
private final int version
private final ObserveSql.Types type
private final String telescope
private final Date first
private final Date last
private String filter
private final Number derotator
protected ImageBlock(ObserveSql.Types typ, int v, String tel, SortedMap<String,ImageInfo> obj, Date from, Date to)
protected ImageBlock(ObserveSql.Types typ, int v, String tel, SortedMap<String,ImageInfo> obj, Date from, Date to, String filt)
public String getUnique()
public ObserveSql.Types getType()
public int getVersion()
public String getTelescope()
public List<String> getUniqueList()
public int size()
public Date getStart()
public Date getEnd()
public long getDuration()
public String getFilter()
public Number getDerotator()
public int hashCode()
public boolean equals(Object th)
public int compareTo(ImageBlock that)
compareTo in interface Comparable<ImageBlock>