public class ProfileGenerationImpl extends Object implements ProfileGeneration
| Constructor and Description |
|---|
ProfileGenerationImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.framework.BundleContext ctx,
ProfileGeneratorConfiguration config) |
protected void |
addTemplate(org.osgi.service.component.ComponentServiceObjects<ProfileTemplate> templateRef) |
Profile |
getStoredProfile(String profileId) |
Collection<String> |
getStoredProfileIds(String templateId) |
Profile |
read(InputStream in) |
Profile |
read(Reader in) |
boolean |
removeStoredProfile(String profileId) |
protected void |
removeTemplate(org.osgi.service.component.ComponentServiceObjects<ProfileTemplate> templateRef) |
Profile |
run(ProfileTemplate template,
Consumer<State> switchFunction,
NavigableMap<Long,State> stateDurations,
Map<DataPoint,Object> data0,
State endState) |
void |
store(Profile profile,
OutputStream out) |
void |
store(Profile profile,
Writer out) |
void |
storeProfile(Profile profile) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrunprotected void activate(org.osgi.framework.BundleContext ctx,
ProfileGeneratorConfiguration config)
throws IOException
IOExceptionprotected void addTemplate(org.osgi.service.component.ComponentServiceObjects<ProfileTemplate> templateRef)
protected void removeTemplate(org.osgi.service.component.ComponentServiceObjects<ProfileTemplate> templateRef)
public Profile run(ProfileTemplate template, Consumer<State> switchFunction, NavigableMap<Long,State> stateDurations, Map<DataPoint,Object> data0, State endState) throws InterruptedException
run in interface ProfileGenerationInterruptedExceptionpublic void store(Profile profile, OutputStream out) throws IOException
store in interface ProfileGenerationIOExceptionpublic void store(Profile profile, Writer out) throws IOException
store in interface ProfileGenerationIOExceptionpublic Profile read(InputStream in) throws IOException
read in interface ProfileGenerationIOExceptionpublic Profile read(Reader in) throws IOException
read in interface ProfileGenerationIOExceptionpublic void storeProfile(Profile profile) throws IOException
storeProfile in interface ProfileGenerationIOExceptionpublic Collection<String> getStoredProfileIds(String templateId) throws IOException
getStoredProfileIds in interface ProfileGenerationIOExceptionpublic Profile getStoredProfile(String profileId) throws IOException
getStoredProfile in interface ProfileGenerationIOExceptionpublic boolean removeStoredProfile(String profileId) throws IOException
removeStoredProfile in interface ProfileGenerationIOExceptionCopyright © 2018–2019. All rights reserved.