blob: 7038abf0dcb10aca3b90fc688095cdf055dfccac (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
package org.openslx.virtualization.configuration.transformation;
/**
* Represents a specific transformation that transforms (alters) a given configuration with
* specified input arguments. The specific transformation depends on external states of a
* specified virtualizer.
*
* @author Manuel Bentele
* @version 1.0
*
* @param <T> type of the configuration which will be transformed.
* @param <R> type of input arguments for the transformation.
* @param <H> type of the external input source.
*/
public abstract class TransformationSpecific<T, R, H> extends Transformation<T, R>
{
/**
* Reference to virtualizer to query external states.
*/
private final H virtualizer;
/**
* Create a specific transformation.
*
* @param name comprehensible name for the transformation.
* @param virtualizer initialized virtualizer.
*/
public TransformationSpecific( String name, H virtualizer )
{
super( name );
this.virtualizer = virtualizer;
}
/**
* Returns the referenced virtualizer of the transformation.
*
* @return referenced virtualizer of the transformation.
*/
public H getVirtualizer()
{
return this.virtualizer;
}
}
|