Class VabInvocablesCreator.AbstractFunctor
- java.lang.Object
-
- de.iip_ecosphere.platform.support.aas.basyx.VabInvocablesCreator.AbstractFunctor
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
VabInvocablesCreator.Getter,VabInvocablesCreator.Operation,VabInvocablesCreator.Setter
- Enclosing class:
- VabInvocablesCreator
protected abstract static class VabInvocablesCreator.AbstractFunctor extends java.lang.Object implements java.io.SerializableDefines an abstract, generic, serializable functor.- Author:
- Holger Eichelberger, SSE
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private VabInvocablesCreatorcreatorprivate static java.util.Map<java.lang.String,java.lang.Long>failedprivate java.lang.Stringnameprivate static longserialVersionUIDprotected static longTIMEOUT
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractFunctor(VabInvocablesCreator creator, java.lang.String name)Creates a functor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.eclipse.basyx.vab.modelprovider.VABElementProxycreateProxy()Creates the element proxy.protected VabInvocablesCreatorgetCreator()Returns the creator instance.protected java.lang.StringgetId()Returns the id of the creator.java.lang.StringgetName()Returns the name of the implementation element.protected booleanisOk()Returns whether the underlying connection is ok.protected voidmarkAsFailed()Marks the underlying connection as failed forTIMEOUT.
-
-
-
Field Detail
-
TIMEOUT
protected static final long TIMEOUT
- See Also:
- Constant Field Values
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
failed
private static java.util.Map<java.lang.String,java.lang.Long> failed
-
creator
private VabInvocablesCreator creator
-
name
private java.lang.String name
-
-
Constructor Detail
-
AbstractFunctor
protected AbstractFunctor(VabInvocablesCreator creator, java.lang.String name)
Creates a functor instance.- Parameters:
creator- the creator instancename- the name
-
-
Method Detail
-
markAsFailed
protected void markAsFailed()
Marks the underlying connection as failed forTIMEOUT.
-
isOk
protected boolean isOk()
Returns whether the underlying connection is ok.- Returns:
truefor ok,falsefor currently failing
-
getCreator
protected VabInvocablesCreator getCreator()
Returns the creator instance.- Returns:
- the creator instance
-
createProxy
protected org.eclipse.basyx.vab.modelprovider.VABElementProxy createProxy()
Creates the element proxy.- Returns:
- the element proxy
-
getId
protected java.lang.String getId()
Returns the id of the creator.- Returns:
- the id
-
getName
public java.lang.String getName()
Returns the name of the implementation element.- Returns:
- the name
-
-