Package org.opentcs.data.model
Class TCSResource<E extends TCSResource<E>>
java.lang.Object
org.opentcs.data.TCSObject<E>
org.opentcs.data.model.TCSResource<E>
- Type Parameters:
E- The actual resource class.
- All Implemented Interfaces:
java.io.Serializable
public abstract class TCSResource<E extends TCSResource<E>> extends TCSObject<E> implements java.io.Serializable
Describes a resource that
Vehicles may claim for exclusive usage.- See Also:
Scheduler, Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedTCSResource(java.lang.String name)Creates a new TCSResource.protectedTCSResource(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties, ObjectHistory history)Creates a new TCSResource. -
Method Summary
Modifier and Type Method Description TCSResourceReference<E>getReference()Returns a transient/soft reference to this object.Methods inherited from class org.opentcs.data.TCSObject
equals, getHistory, getName, getProperties, getProperty, hashCode, listWithoutNullValues, mapWithoutNullValues, propertiesWith, setWithoutNullValues, toString, withHistory, withHistoryEntry, withProperties, withProperty
-
Constructor Details
-
TCSResource
protected TCSResource(java.lang.String name)Creates a new TCSResource.- Parameters:
name- The new resource's name.
-
TCSResource
protected TCSResource(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> properties, ObjectHistory history)Creates a new TCSResource.- Parameters:
name- The new resource's name.properties- A set of properties (key-value pairs) associated with this object.history- A history of events related to this object.
-
-
Method Details
-
getReference
Description copied from class:TCSObjectReturns a transient/soft reference to this object.- Overrides:
getReferencein classTCSObject<E extends TCSResource<E>>- Returns:
- A transient/soft reference to this object.
-