/** * Returns a new instance of the OFMessage represented by this OFType * * @return the new object */ public OFMessage newInstance() { return this.instantiable.instantiate(); }
/** * Returns a new instance of the SNMPAction represented by this SNMPActionType * @return the new object */ public SNMPAction newInstance() { return instantiable.instantiate(); }
/** * Returns a new instance of the OFAction represented by this OFActionType * * @return the new object */ public OFAction newInstance() { return this.instantiable.instantiate(); }
/** * Returns a new instance of a subclass of OFVendorData associated with this * OFVendorDataType. * * @return the new object */ public OFVendorData newInstance() { return this.instantiable.instantiate(); }
/** * Returns a new instance of the implementation class for this * OFStatisticsType, either request or reply based on the supplied OFType * * @param t * @return */ public OFStatistics newInstance(final OFType t) { if (t == OFType.STATS_REQUEST) { return this.requestInstantiable.instantiate(); } else if (t == OFType.STATS_REPLY) { return this.replyInstantiable.instantiate(); } else { throw new RuntimeException(t.toString() + " is an invalid OFType"); } } }